diff options
| author | Teddy Wing | 2017-08-07 11:45:03 +0200 |
|---|---|---|
| committer | Teddy Wing | 2017-08-07 11:45:03 +0200 |
| commit | 22dbab5e609e3ec578b68890d67741a99103dd0c (patch) | |
| tree | b776029c5037570d9d7955edfcde644fec932b89 /spec | |
| parent | 2cf8146cdb4a28fe247108f98c5bc7eb05940e05 (diff) | |
| download | chouette-core-22dbab5e609e3ec578b68890d67741a99103dd0c.tar.bz2 | |
Add routes to Routes#duplicate
A couple of new routes for a form that will allow us to duplicate an
itinéraire/route inside a line.
Refs #4189
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/routing/routes_routing_spec.rb | 11 |
1 files changed, 11 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..ca2d3ade9 --- /dev/null +++ b/spec/routing/routes_routing_spec.rb @@ -0,0 +1,11 @@ +RSpec.describe "routes for Routes", type: :routing do + it "routes to /referentials/:id/lines/:id/routes/:id/duplicate" do + expect( + get: '/referentials/:referential_id/lines/:line_id/routes/:id/duplicate' + ).to be_routable + + expect( + post: '/referentials/:referential_id/lines/:line_id/routes/:id/duplicate' + ).to be_routable + end +end |
