aboutsummaryrefslogtreecommitdiffstats
path: root/spec/features/routes_spec.rb
diff options
context:
space:
mode:
authorRobert2017-05-15 17:38:38 +0200
committerRobert2017-05-18 18:42:22 +0200
commitbfec2b6e73747193052639ee2bbf4340409510dc (patch)
tree0d37ba9564781b5db7ba2edf7f8de53a06c91b33 /spec/features/routes_spec.rb
parent8872c4707b806ff4ae412de99a561495c20fbc51 (diff)
downloadchouette-core-bfec2b6e73747193052639ee2bbf4340409510dc.tar.bz2
Refs: #3144; calendar, line_footnotes and routes speced (spec/features)
Diffstat (limited to 'spec/features/routes_spec.rb')
-rw-r--r--spec/features/routes_spec.rb9
1 files changed, 2 insertions, 7 deletions
diff --git a/spec/features/routes_spec.rb b/spec/features/routes_spec.rb
index 4b90a6ec6..89d368479 100644
--- a/spec/features/routes_spec.rb
+++ b/spec/features/routes_spec.rb
@@ -47,6 +47,7 @@ describe "Routes", :type => :feature do
xit "Puts (http) an update request" do
#visit edit_boarding_alighting_referential_line_route_path(referential, line, route)
visit referential_line_route_path(referential, line, route)
+
click_link I18n.t('routes.actions.edit_boarding_alighting')
#select('', :from => '')
# Changes the boarding of the first stop
@@ -62,7 +63,7 @@ describe "Routes", :type => :feature do
context 'user has permission to edit journey patterns' do
it 'shows edit links for journey patterns' do
- expect(page).to have_content(I18n.t('actions.edit'))
+ expect(page).to have_link(I18n.t('actions.edit'), href: edit_referential_line_route_journey_pattern_path(referential, line, route, journey_pattern))
end
end
@@ -126,12 +127,6 @@ describe "Routes", :type => :feature do
end
end
- context 'user has permission to destroy routes' do
- it 'shows destroy buttons for routes' do
- expect(page).to have_content(I18n.t('actions.edit'))
- end
- end
-
context 'user does not have permission to destroy routes' do
it 'does not show destroy buttons for routes' do
@user.update_attribute(:permissions, [])