aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--spec/features/stop_areas_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/features/stop_areas_spec.rb b/spec/features/stop_areas_spec.rb
index 17aee2cc0..52040f070 100644
--- a/spec/features/stop_areas_spec.rb
+++ b/spec/features/stop_areas_spec.rb
@@ -18,14 +18,16 @@ describe "StopAreas", :type => :feature do
context 'filtering' do
it 'supports filtering by name' do
- fill_in 'q[name_or_objectid_cont]', with: stop_areas.first.name
+ fill_in 'q[name_or_objectid_or_registration_number_cont]',
+ with: stop_areas.first.name
click_button 'search-btn'
expect(page).to have_content(stop_areas.first.name)
expect(page).not_to have_content(stop_areas.last.name)
end
it 'supports filtering by objectid' do
- fill_in 'q[name_or_objectid_cont]', with: stop_areas.first.objectid
+ fill_in 'q[name_or_objectid_or_registration_number_cont]',
+ with: stop_areas.first.objectid
click_button 'search-btn'
expect(page).to have_content(stop_areas.first.name)
expect(page).not_to have_content(stop_areas.last.name)