diff options
| author | Luc Donnet | 2017-09-12 14:46:35 +0200 |
|---|---|---|
| committer | GitHub | 2017-09-12 14:46:35 +0200 |
| commit | 4aa19d931f8585c061dd3da49e31b2ddbbb1bf6b (patch) | |
| tree | 49e5b796e86f4430cdbf098229490d4ed98e0abb /spec/routing/routes_routing_spec.rb | |
| parent | 38befb74289521600564477cdbabd53b372550a5 (diff) | |
| parent | 9810dd389cff0bd5dbda26e46806f62d28410ff4 (diff) | |
| download | chouette-core-4aa19d931f8585c061dd3da49e31b2ddbbb1bf6b.tar.bz2 | |
Merge pull request #63 from af83/4189-duplicate-route
4189 duplicate route
Diffstat (limited to 'spec/routing/routes_routing_spec.rb')
| -rw-r--r-- | spec/routing/routes_routing_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/routing/routes_routing_spec.rb b/spec/routing/routes_routing_spec.rb new file mode 100644 index 000000000..311de9f39 --- /dev/null +++ b/spec/routing/routes_routing_spec.rb @@ -0,0 +1,12 @@ +RSpec.describe "routes for Routes", type: :routing do + context "routes /referentials/:id/lines/:id/routes/:id/duplicate" do + + let( :controller ){ {controller: 'routes', referential_id: ':referential_id', line_id: ':line_id', id: ':id'} } + + 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: 'duplicate') + end + end +end |
