diff options
| author | Luc Donnet | 2015-01-07 21:58:56 +0100 |
|---|---|---|
| committer | Luc Donnet | 2015-01-07 21:58:56 +0100 |
| commit | baaed4653623cfc918ada7250c4fd879aad28893 (patch) | |
| tree | ec1e7da111c2ccd95f82013e2d40d6b455f80815 /spec/features/stop_areas_spec.rb | |
| parent | c39887f2e4f6a12ab3af205c58a1330d8b28f5e9 (diff) | |
| download | chouette-core-baaed4653623cfc918ada7250c4fd879aad28893.tar.bz2 | |
Fix spec and update devise usage
Diffstat (limited to 'spec/features/stop_areas_spec.rb')
| -rw-r--r-- | spec/features/stop_areas_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/features/stop_areas_spec.rb b/spec/features/stop_areas_spec.rb index 4d1b7e2bb..ff5a73438 100644 --- a/spec/features/stop_areas_spec.rb +++ b/spec/features/stop_areas_spec.rb @@ -25,7 +25,7 @@ describe "StopAreas", :type => :feature do it "display map" do visit referential_stop_areas_path(referential) click_link "#{stop_areas.first.name}" - expect(page).to have_selector("#map", :class => 'stop_area') + expect(page).to have_selector("#map.stop_area") end end @@ -34,7 +34,7 @@ describe "StopAreas", :type => :feature do it "creates stop_area and return to show" do visit referential_stop_areas_path(referential) click_link "Ajouter un arrêt" - fill_in "Nom", :with => "StopArea 1" + fill_in "stop_area_name", :with => "StopArea 1" fill_in "Numéro d'enregistrement", :with => "test-1" fill_in "Identifiant Neptune", :with => "test:StopArea:1" click_button("Créer arrêt") @@ -46,7 +46,7 @@ describe "StopAreas", :type => :feature do it "edit stop_area" do visit referential_stop_area_path(referential, subject) click_link "Modifier cet arrêt" - fill_in "Nom", :with => "StopArea Modified" + fill_in "stop_area_name", :with => "StopArea Modified" fill_in "Numéro d'enregistrement", :with => "test-1" click_button("Modifier arrêt") expect(page).to have_content("StopArea Modified") |
