blob: e6e3303abd2bc3dc2f87eeb9ed16f3328ff1460e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# -*- coding: utf-8 -*-
require 'spec_helper'
describe "StopPoints" do
login_user
let(:referential) { create(:referential).switch }
let(:line) { referential; Factory(:line) }
let(:route) { referential; Factory(:route, :line => line) }
let(:route2) { referential; 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 "Réordonner les arrêts de la séquence"
route.stop_areas.each do |sa|
page.should 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
visit referential_line_route_path(referential,line,route)
click_link "Réordonner les arrêts de la séquence"
click_link "Ajouter un arrêt à la séquence"
page.should have_content( "Sélectionner un arrêt")
end
end
end
|