aboutsummaryrefslogtreecommitdiffstats
path: root/spec/features
diff options
context:
space:
mode:
authorjpl2017-02-23 16:33:54 +0100
committerjpl2017-02-23 16:33:54 +0100
commitd6c447cc7524a5f20681a0565649f5cbfbaa70d4 (patch)
tree692578eb9e13ecdfc1564cc6c0532b0c70712080 /spec/features
parentbb75e3efb7de3d37439285722aca49d4cef77ad5 (diff)
downloadchouette-core-d6c447cc7524a5f20681a0565649f5cbfbaa70d4.tar.bz2
Fix tests
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/routes_spec.rb2
-rw-r--r--spec/features/vehicle_journey_imports_spec.rb2
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