diff options
| author | cedricnjanga | 2018-05-23 17:21:03 -0700 |
|---|---|---|
| committer | cedricnjanga | 2018-05-23 17:21:03 -0700 |
| commit | b63072ef395e7f19c0ed155f5f408488c2d0e7e2 (patch) | |
| tree | 870a87e5fe874ece14c0078925d675080026b061 /spec | |
| parent | f16f8ebf092edf45f063835d83153498ba13e212 (diff) | |
| download | chouette-core-6860-stop-point-show-link.tar.bz2 | |
Refs #6860 Remove all call of referential_stop_areas_path & referential_stop_area_path6860-stop-point-show-link
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 |
