aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2018-04-25 17:00:38 +0200
committerJohan Van Ryseghem2018-04-26 15:35:54 +0200
commitc10aff0d4efcacc16093af7596992b3142d7df88 (patch)
tree87c3ed70e5f59d8ec552c247ed99c98bdaa93115
parentcf67147bfc2749cef0af610e3194dad7c78a6321 (diff)
downloadchouette-core-c10aff0d4efcacc16093af7596992b3142d7df88.tar.bz2
features/stop_areas_spec: Fix `name_or_objectid_cont` name
This name has been renamed to get Ransack to filter by registration number (in c2a466e04d3e335a56ab5bd0866b3663da29ffa0). Change the name used in these tests to get them to pass again. Refs #6681
-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)