Commit bb7df7663a8952d60abea015f823b7acbc8c49c2
1 parent
0f31acd0
Exists in
spb-stable
and in
3 other branches
Add short path route for groups.
Showing
2 changed files
with
14 additions
and
0 deletions
Show diff stats
config/routes.rb
spec/routing/routing_spec.rb
... | ... | @@ -238,3 +238,15 @@ end |
238 | 238 | describe "Authentication", "routing" do |
239 | 239 | # pending |
240 | 240 | end |
241 | + | |
242 | +describe "Groups", "routing" do | |
243 | + it "to #show" do | |
244 | + get("/groups/1").should route_to('groups#show', id: '1') | |
245 | + end | |
246 | + | |
247 | + it "redirect" do | |
248 | + # get("/groups/1").should redirect_to("/groups/1") | |
249 | + get("/1").should route_to('groups#show', id: '1') | |
250 | + end | |
251 | +end | |
252 | + | ... | ... |