aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcedricnjanga2018-03-09 08:46:01 -0800
committercedricnjanga2018-03-09 08:48:56 -0800
commitd8cb2105d28f1463b22b556c1eb0bb4ff2ec3564 (patch)
tree293b5fca566ac3e147c9a71e8ec12eb08c0029dd
parentf6fd7707c0ae9f23769928da6ba180327915e74f (diff)
downloadchouette-core-d8cb2105d28f1463b22b556c1eb0bb4ff2ec3564.tar.bz2
Refs #5934 clean spec file
-rw-r--r--spec/features/routes_spec.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/spec/features/routes_spec.rb b/spec/features/routes_spec.rb
index d7578c729..3bd2071d2 100644
--- a/spec/features/routes_spec.rb
+++ b/spec/features/routes_spec.rb
@@ -6,7 +6,6 @@ describe "Routes", :type => :feature do
let!(:route2) { create(:route, :line => line) }
#let!(:stop_areas) { Array.new(4) { create(:stop_area) } }
let!(:stop_points) { Array.new(4) { create(:stop_point, :route => route) } }
- let(:stop_area_referential) {stop_points.first.stop_area.stop_area_referential}
let!(:journey_pattern) { create(:journey_pattern, route: route) }
before { @user.update(organisation: referential.organisation) }
@@ -89,16 +88,6 @@ describe "Routes", :type => :feature do
expect(page).not_to have_link(I18n.t('actions.destroy'), href: referential_line_route_journey_pattern_path(referential, line, route, journey_pattern))
end
end
-
- context 'user has permission to destroy journey patterns' do
- xit 'shows destroy links for journey patterns' do
- @user.update_attribute(:permissions, ["stop_areas.destroy"])
- stop_points.each_with_index do |sp, i|
- stop_point_action_links_btn(i + 1).click
- expect(page).to have_link(I18n.t('stop_points.actions.destroy'), href: stop_area_referential_stop_area_path(sp.referential, sp))
- end
- end
- end
end
describe 'referential line show' do