diff options
| author | Teddy Wing | 2018-04-25 17:00:38 +0200 | 
|---|---|---|
| committer | Johan Van Ryseghem | 2018-04-26 15:35:54 +0200 | 
| commit | c10aff0d4efcacc16093af7596992b3142d7df88 (patch) | |
| tree | 87c3ed70e5f59d8ec552c247ed99c98bdaa93115 /spec/features/stop_areas_spec.rb | |
| parent | cf67147bfc2749cef0af610e3194dad7c78a6321 (diff) | |
| download | chouette-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
Diffstat (limited to 'spec/features/stop_areas_spec.rb')
| -rw-r--r-- | spec/features/stop_areas_spec.rb | 6 | 
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) | 
