summaryrefslogtreecommitdiff
path: root/spec/routing
diff options
context:
space:
mode:
authorLong Nguyen <long.polyglot@gmail.com>2016-05-08 15:27:33 +0700
committerLong Nguyen <long.polyglot@gmail.com>2016-05-08 15:27:33 +0700
commitffda8a1a0eb273e62fcb0197f352400946571778 (patch)
treebe1465d224f13c603d0ee80f12dcb0f161bea0d7 /spec/routing
parent5f60841d7e4aea2b6298df7ea0423e3baa769df1 (diff)
downloadgitlab-ce-ffda8a1a0eb273e62fcb0197f352400946571778.tar.gz
user routings refactor
Diffstat (limited to 'spec/routing')
-rw-r--r--spec/routing/routing_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/routing/routing_spec.rb b/spec/routing/routing_spec.rb
index 9deffd0a1e3..543088fa088 100644
--- a/spec/routing/routing_spec.rb
+++ b/spec/routing/routing_spec.rb
@@ -31,6 +31,10 @@ describe SnippetsController, "routing" do
expect(get("/snippets/1/raw")).to route_to('snippets#raw', id: '1')
end
+ it "to #index" do
+ expect(get("/snippets")).to route_to('snippets#index')
+ end
+
it "to #create" do
expect(post("/snippets")).to route_to('snippets#create')
end