aboutsummaryrefslogtreecommitdiffstats
path: root/spec/features/stop_points_spec.rb
diff options
context:
space:
mode:
authorLuc Donnet2015-01-05 14:56:12 +0100
committerLuc Donnet2015-01-05 14:56:12 +0100
commit3bc6d313bebdc1f03e4021aabbc774a0cd97d938 (patch)
treeac5b8c6d8309012136606d9fd9b9a00290f486a8 /spec/features/stop_points_spec.rb
parente632a4634b1762f4c73d11f1e5b127de9832a1ff (diff)
downloadchouette-core-3bc6d313bebdc1f03e4021aabbc774a0cd97d938.tar.bz2
Initialize rails 4 migration
Diffstat (limited to 'spec/features/stop_points_spec.rb')
-rw-r--r--spec/features/stop_points_spec.rb30
1 files changed, 30 insertions, 0 deletions
diff --git a/spec/features/stop_points_spec.rb b/spec/features/stop_points_spec.rb
new file mode 100644
index 000000000..ec3aca475
--- /dev/null
+++ b/spec/features/stop_points_spec.rb
@@ -0,0 +1,30 @@
+# -*- coding: utf-8 -*-
+require 'spec_helper'
+
+describe "StopPoints", :type => :feature do
+ login_user
+
+ let(:line) { Factory(:line) }
+ let(:route) { Factory(:route, :line => line) }
+ let(:route2) { Factory(:route, :line => line) }
+
+ describe "from route's page to a stop points page" do
+ it "display route's stop points" do
+ pending
+ visit referential_line_route_path(referential,line,route)
+ click_link "Gérer les arrêts de la séquence"
+ route.stop_areas.each do |sa|
+ expect(page).to have_content(sa.name)
+ end
+ end
+ end
+ describe "from route's page, go to new stop point page" do
+ it "display route's stop points" do
+ pending
+ visit referential_line_route_path(referential,line,route)
+ click_link "Gérer les arrêts de la séquence"
+ click_link "Ajouter un arrêt à la séquence"
+ expect(page).to have_content( "Sélectionner un arrêt")
+ end
+ end
+end