diff options
author | Long Nguyen <long.polyglot@gmail.com> | 2016-05-08 15:27:33 +0700 |
---|---|---|
committer | Long Nguyen <long.polyglot@gmail.com> | 2016-05-08 15:27:33 +0700 |
commit | ffda8a1a0eb273e62fcb0197f352400946571778 (patch) | |
tree | be1465d224f13c603d0ee80f12dcb0f161bea0d7 /spec/routing | |
parent | 5f60841d7e4aea2b6298df7ea0423e3baa769df1 (diff) | |
download | gitlab-ce-ffda8a1a0eb273e62fcb0197f352400946571778.tar.gz |
user routings refactor
Diffstat (limited to 'spec/routing')
-rw-r--r-- | spec/routing/routing_spec.rb | 4 |
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 |