public
Rubygem
Fork of thoughtbot/shoulda
Description: Makes tests easy on the fingers and the eyes
Homepage: http://www.thoughtbot.com/projects/shoulda
Clone URL: git://github.com/technicalpickles/shoulda.git
doc patch
dancroak (author)
Tue Sep 30 09:14:23 -0700 2008
commit  1967db492a66cd448513f05a3ec30a6d89f55a97
tree    b20ab6e68846e78c0f67be18314bb74e306109dd
parent  18ab33cfc73471975190fe6e7240f105ada563fc
...
283
284
285
286
287
288
289
290
291
 
 
 
 
 
 
292
293
294
...
283
284
285
 
 
 
 
 
 
286
287
288
289
290
291
292
293
294
0
@@ -283,12 +283,12 @@ module ThoughtBot # :nodoc:
0
         # should_route :get, "/posts", :controller => :posts, :action => :index
0
         # should_route :get, "/posts/new", :action => :new
0
         # should_route :post, "/posts", :action => :create
0
- # should_route :get, "/posts/#{@post.id}", :action => :show, :id => @post.id
0
- # should_route :edit, "/posts/#{@post.id}", :action => :show, :id => @post.id
0
- # should_route :put, "/posts/#{@post.id}", :action => :update, :id => @post.id
0
- # should_route :delete, "/posts/#{@post.id}", :action => :destroy, :id => @post.id
0
- # should_route :get, "/users/#{@user.id}/posts/#{@post.id}",
0
- # :action => :show, :id => @post.id, :user_id => @user.id
0
+ # should_route :get, "/posts/1", :action => :show, :id => 1
0
+ # should_route :edit, "/posts/1", :action => :show, :id => 1
0
+ # should_route :put, "/posts/1", :action => :update, :id => 1
0
+ # should_route :delete, "/posts/1", :action => :destroy, :id => 1
0
+ # should_route :get, "/users/1/posts/1",
0
+ # :action => :show, :id => 1, :user_id => 1
0
         #
0
         def should_route(method, path, options)
0
           unless options[:controller]

Comments

    No one has commented yet.