Skip to content

Commit fbf9194

Browse files
committed
Merge branch 'master' into rails4
2 parents b417b5c + e5a891f commit fbf9194

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

spec/features/smoke_spec.rb

+6-6
Original file line numberDiff line numberDiff line change
@@ -77,18 +77,18 @@
7777
describe 'filters' do
7878
describe 'string' do
7979
it 'searches by title' do
80-
fill_in 'Search Title', with: 'Brown'
80+
fill_in 'Title', with: 'Brown'
8181
click_on 'Filter'
8282

8383
within '#index_table_posts' do
8484
page.should have_content('Quick Brown Fox')
8585
end
8686

87-
fill_in 'Search Title', with: 'dog'
87+
fill_in 'Title', with: 'dog'
8888
click_on 'Filter'
8989
page.should_not have_content('Quick Brown Fox')
9090

91-
fill_in 'Search Title', with: ''
91+
fill_in 'Title', with: ''
9292
click_on 'Filter'
9393

9494
page.should have_content('Displaying 1 Post')
@@ -120,7 +120,7 @@
120120
describe 'numeric' do
121121
it 'searches by created_at range', js: true do
122122
within '.filter_numeric' do
123-
find(:select).find('option[value=view_count_eq]').select_option
123+
find(:select).find('option[value=view_count_equals]').select_option
124124
end
125125
fill_in 'View count', with: '5'
126126
click_on 'Filter'
@@ -134,7 +134,7 @@
134134
page.should_not have_content('Quick Brown Fox')
135135

136136
within '.filter_numeric' do
137-
find(:select).find('option[value=view_count_lt]').select_option
137+
find(:select).find('option[value=view_count_less_than]').select_option
138138
end
139139
click_on 'Filter'
140140

@@ -143,7 +143,7 @@
143143
end
144144

145145
within '.filter_numeric' do
146-
find(:select).find('option[value=view_count_gt]').select_option
146+
find(:select).find('option[value=view_count_greater_than]').select_option
147147
end
148148
click_on 'Filter'
149149
page.should_not have_content('Quick Brown Fox')

0 commit comments

Comments
 (0)