diff options
author | GitLab <gitlab@localhost> | 2014-04-13 17:46:41 +0200 |
---|---|---|
committer | GitLab <gitlab@localhost> | 2014-04-13 17:46:41 +0200 |
commit | bb7df7663a8952d60abea015f823b7acbc8c49c2 (patch) | |
tree | b95b95d56143d28953412bc00c7c9fdcb790af0e /spec/routing | |
parent | 0f31acd0ec9b8a6ccfe9c6b0038736ad724814c0 (diff) | |
download | gitlab-ce-bb7df7663a8952d60abea015f823b7acbc8c49c2.tar.gz |
Add short path route for groups.
Diffstat (limited to 'spec/routing')
-rw-r--r-- | spec/routing/routing_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/routing/routing_spec.rb b/spec/routing/routing_spec.rb index 9b67cd432bc..52a9e113e31 100644 --- a/spec/routing/routing_spec.rb +++ b/spec/routing/routing_spec.rb @@ -238,3 +238,15 @@ end describe "Authentication", "routing" do # pending end + +describe "Groups", "routing" do + it "to #show" do + get("/groups/1").should route_to('groups#show', id: '1') + end + + it "redirect" do + # get("/groups/1").should redirect_to("/groups/1") + get("/1").should route_to('groups#show', id: '1') + end +end + |