diff options
| -rw-r--r-- | spec/features/routes_spec.rb | 11 |
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 |
