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