diff options
| author | jpl | 2017-02-23 16:33:54 +0100 |
|---|---|---|
| committer | jpl | 2017-02-23 16:33:54 +0100 |
| commit | d6c447cc7524a5f20681a0565649f5cbfbaa70d4 (patch) | |
| tree | 692578eb9e13ecdfc1564cc6c0532b0c70712080 /spec/features | |
| parent | bb75e3efb7de3d37439285722aca49d4cef77ad5 (diff) | |
| download | chouette-core-d6c447cc7524a5f20681a0565649f5cbfbaa70d4.tar.bz2 | |
Fix tests
Diffstat (limited to 'spec/features')
| -rw-r--r-- | spec/features/routes_spec.rb | 2 | ||||
| -rw-r--r-- | spec/features/vehicle_journey_imports_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/routes_spec.rb b/spec/features/routes_spec.rb index 9bfb070c1..0cdeaddb4 100644 --- a/spec/features/routes_spec.rb +++ b/spec/features/routes_spec.rb @@ -37,7 +37,7 @@ describe "Routes", :type => :feature do click_link "Ajouter un itinéraire" fill_in "route_name", :with => "A to B" # select 'Aller', :from => "route_direction" - select 'Aller', :from => "route_wayback" + check('route[wayback]') click_button("Enregistrer") expect(page).to have_content("A to B") end diff --git a/spec/features/vehicle_journey_imports_spec.rb b/spec/features/vehicle_journey_imports_spec.rb index 262d585f2..fe1fc74f3 100644 --- a/spec/features/vehicle_journey_imports_spec.rb +++ b/spec/features/vehicle_journey_imports_spec.rb @@ -49,7 +49,7 @@ describe "VehicleJourneyImports", :type => :feature do attach_file('Fichier', valid_file_path) click_button "Lancer l'import" expect(page).to have_content(I18n.t("vehicle_journey_imports.new.success")) - expect(page).to have_content("Itinéraire #{route.name}") + expect(page).to have_content(route.name) end it "should return error messages when file is invalid" do |
