diff options
| author | cedricnjanga | 2018-05-23 17:21:03 -0700 |
|---|---|---|
| committer | Johan Van Ryseghem | 2018-05-29 14:41:02 +0200 |
| commit | f6c2141a1672acb7010f2e7b961e53b0e34a21cb (patch) | |
| tree | d3a27c213e1c1ad2383d2dd1784e00b7df313121 /spec | |
| parent | 79e89af12bbc865b6defafa27dca5dafd72df3ef (diff) | |
| download | chouette-core-f6c2141a1672acb7010f2e7b961e53b0e34a21cb.tar.bz2 | |
Refs #6860 Remove all call of referential_stop_areas_path & referential_stop_area_path
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/features/referential_stop_areas_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/features/referential_stop_areas_spec.rb b/spec/features/referential_stop_areas_spec.rb index 5e70857e7..14da3a725 100644 --- a/spec/features/referential_stop_areas_spec.rb +++ b/spec/features/referential_stop_areas_spec.rb @@ -9,7 +9,7 @@ describe 'ReferentialStopAreas', type: :feature do let!(:stop_areas) { Array.new(2) { create :stop_area, stop_area_referential: stop_area_referential } } describe 'index' do - before(:each) { visit referential_stop_areas_path(referential) } + before(:each) { visit stop_area_referential_stop_areas_path(referential.workbench.stop_area_referential) } it 'displays referential stop_areas' do expect(page).to have_content(stop_areas.first.name) @@ -18,14 +18,14 @@ describe 'ReferentialStopAreas', 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) @@ -35,7 +35,7 @@ describe 'ReferentialStopAreas', type: :feature do describe 'show' do it 'displays referential stop area' do - visit referential_stop_area_path(referential, stop_areas.first) + visit stop_area_referential_stop_area_path(stop_areas.first.stop_area_referential, stop_areas.first) expect(page).to have_content(stop_areas.first.name) end end |
