aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorTeddy Wing2017-08-07 11:45:03 +0200
committerTeddy Wing2017-08-07 11:45:03 +0200
commit22dbab5e609e3ec578b68890d67741a99103dd0c (patch)
treeb776029c5037570d9d7955edfcde644fec932b89 /spec
parent2cf8146cdb4a28fe247108f98c5bc7eb05940e05 (diff)
downloadchouette-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.rb11
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