aboutsummaryrefslogtreecommitdiffstats
path: root/spec/routing/routes_routing_spec.rb
diff options
context:
space:
mode:
authorRobert2017-09-11 09:41:03 +0200
committerRobert2017-09-11 17:15:49 +0200
commitf7bc874de79ff9a68aa03523cf653407663e7c55 (patch)
tree1716586822ad9b9912e44f658193e5c1aea04e88 /spec/routing/routes_routing_spec.rb
parent003c4689248673fbc8922a107475caa9e059bcab (diff)
downloadchouette-core-f7bc874de79ff9a68aa03523cf653407663e7c55.tar.bz2
Fixes #4189@4h Route Duplication
* Duplication of Route is triggered by link and UI forwarded to edit of duplicatee - Changing route, only POST duplicate_referential_line_route --> RoutesController#duplicate - Removing route GET duplicate_referential_line_route --> RoutesController#duplicate - Removing controller action RoutesController#post_duplicate * Link in Route Decorator depends on new policy RoutePolicy#decorate? * Adapting specs
Diffstat (limited to 'spec/routing/routes_routing_spec.rb')
-rw-r--r--spec/routing/routes_routing_spec.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/spec/routing/routes_routing_spec.rb b/spec/routing/routes_routing_spec.rb
index 4635603d4..311de9f39 100644
--- a/spec/routing/routes_routing_spec.rb
+++ b/spec/routing/routes_routing_spec.rb
@@ -3,16 +3,10 @@ RSpec.describe "routes for Routes", type: :routing do
let( :controller ){ {controller: 'routes', referential_id: ':referential_id', line_id: ':line_id', id: ':id'} }
- it 'with method get to #duplicate' do
- expect(
- get: '/referentials/:referential_id/lines/:line_id/routes/:id/duplicate'
- ).to route_to controller.merge(action: 'duplicate')
- end
-
it 'with method post to #post_duplicate' do
expect(
post: '/referentials/:referential_id/lines/:line_id/routes/:id/duplicate'
- ).to route_to controller.merge(action: 'post_duplicate')
+ ).to route_to controller.merge(action: 'duplicate')
end
end
end