aboutsummaryrefslogtreecommitdiffstats
path: root/spec/features/routes_spec.rb
diff options
context:
space:
mode:
authorTeddy Wing2017-07-12 11:21:59 +0200
committerTeddy Wing2017-07-12 11:21:59 +0200
commitea485077b68b772fbacd809c4de8c38183098e28 (patch)
tree957bf3e988e83f13255d6c1b5d3027b06abafa61 /spec/features/routes_spec.rb
parent56877a55d7b3dbe26ec42eb54a968117b3925e3d (diff)
downloadchouette-core-ea485077b68b772fbacd809c4de8c38183098e28.tar.bz2
routes_spec.rb: Remove reference to `ReferentialLines#index`
That route has been removed. Fix the test to ensure it doesn't get accessed, but still performs what was previously tested. Refs #3479
Diffstat (limited to 'spec/features/routes_spec.rb')
-rw-r--r--spec/features/routes_spec.rb11
1 files changed, 4 insertions, 7 deletions
diff --git a/spec/features/routes_spec.rb b/spec/features/routes_spec.rb
index 561725ddd..3bd2071d2 100644
--- a/spec/features/routes_spec.rb
+++ b/spec/features/routes_spec.rb
@@ -11,13 +11,10 @@ describe "Routes", :type => :feature do
before { @user.update(organisation: referential.organisation) }
with_permissions "boiv:read" do
- context "from lines page to a line page" do
- it "display line's routes" do
- visit referential_lines_path(referential)
- first(:link, 'Consulter').click
- expect(page).to have_content(route.name)
- expect(page).to have_content(route2.name)
- end
+ it "line page displays line's routes" do
+ visit referential_line_path(referential, line)
+ expect(page).to have_content(route.name)
+ expect(page).to have_content(route2.name)
end
describe "from line's page to route's page" do