diff options
| author | jpl | 2017-03-17 17:28:36 +0100 |
|---|---|---|
| committer | jpl | 2017-03-17 17:28:36 +0100 |
| commit | 82f8b8a0cf518946d94573831676237411e1ece9 (patch) | |
| tree | 7cd4182e3337a7dd185ef7e97e688cba6ca0fa82 /spec/features/connection_links_spec.rb | |
| parent | 42c0d639d933a7234b5dfbf2987b9c3a4175fca3 (diff) | |
| download | chouette-core-82f8b8a0cf518946d94573831676237411e1ece9.tar.bz2 | |
Refs #2859: fix wording issues
Diffstat (limited to 'spec/features/connection_links_spec.rb')
| -rw-r--r-- | spec/features/connection_links_spec.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/spec/features/connection_links_spec.rb b/spec/features/connection_links_spec.rb index 788e58326..524fbb89a 100644 --- a/spec/features/connection_links_spec.rb +++ b/spec/features/connection_links_spec.rb @@ -13,42 +13,42 @@ describe "ConnectionLinks", :type => :feature do expect(page).to have_content(connection_links.first.name) expect(page).to have_content(connection_links.last.name) end - - end - describe "show" do + end + + describe "show" do it "display connection_link" do visit referential_connection_links_path(referential) click_link "#{connection_links.first.name}" expect(page).to have_content(connection_links.first.name) end - + it "display map" do allow(subject).to receive(:stop_areas).and_return(Array.new(2) { create(:stop_area) }) visit referential_connection_links_path(referential) click_link "#{connection_links.first.name}" expect(page).to have_selector("#map.connection_link") end - + end - describe "new" do + describe "new" do it "creates connection_link and return to show" do visit referential_connection_links_path(referential) click_link "Ajouter une correspondance" fill_in "Nom", :with => "ConnectionLink 1" - fill_in "Identifiant Neptune", :with => "test:ConnectionLink:1" + fill_in "Identifiant Neptune", :with => "test:ConnectionLink:1" click_button("Créer correspondance") expect(page).to have_content("ConnectionLink 1") end end - describe "edit and return to show" do + describe "edit and return to show" do it "edit connection_link" do visit referential_connection_link_path(referential, subject) - click_link "Modifier cette correspondance" + click_link "Editer cette correspondance" fill_in "Nom", :with => "ConnectionLink Modified" - click_button("Modifier correspondance") + click_button("Editer correspondance") expect(page).to have_content("ConnectionLink Modified") end end |
