summaryrefslogtreecommitdiff
path: root/spec/routing
diff options
context:
space:
mode:
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