aboutsummaryrefslogtreecommitdiffstats
path: root/spec/routing/routes_routing_spec.rb
diff options
context:
space:
mode:
authorTeddy Wing2017-08-07 11:45:03 +0200
committerRobert2017-08-11 10:03:46 +0200
commit05417c824f043665cb46d9f837aaf66cd8b787e4 (patch)
tree0cd1cdf119fd531c800b9802dd2609ea40a5bd1f /spec/routing/routes_routing_spec.rb
parent70c04d2727179308e98d704c78a668c425b223b9 (diff)
downloadchouette-core-05417c824f043665cb46d9f837aaf66cd8b787e4.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/routing/routes_routing_spec.rb')
-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