mirror of
https://github.com/thoughtbot/shoulda-matchers.git
synced 2022-11-09 12:01:38 -05:00
doc patch
This commit is contained in:
parent
18ab33cfc7
commit
1967db492a
1 changed files with 6 additions and 6 deletions
|
@ -283,12 +283,12 @@ module ThoughtBot # :nodoc:
|
|||
# should_route :get, "/posts", :controller => :posts, :action => :index
|
||||
# should_route :get, "/posts/new", :action => :new
|
||||
# should_route :post, "/posts", :action => :create
|
||||
# should_route :get, "/posts/#{@post.id}", :action => :show, :id => @post.id
|
||||
# should_route :edit, "/posts/#{@post.id}", :action => :show, :id => @post.id
|
||||
# should_route :put, "/posts/#{@post.id}", :action => :update, :id => @post.id
|
||||
# should_route :delete, "/posts/#{@post.id}", :action => :destroy, :id => @post.id
|
||||
# should_route :get, "/users/#{@user.id}/posts/#{@post.id}",
|
||||
# :action => :show, :id => @post.id, :user_id => @user.id
|
||||
# should_route :get, "/posts/1", :action => :show, :id => 1
|
||||
# should_route :edit, "/posts/1", :action => :show, :id => 1
|
||||
# should_route :put, "/posts/1", :action => :update, :id => 1
|
||||
# should_route :delete, "/posts/1", :action => :destroy, :id => 1
|
||||
# should_route :get, "/users/1/posts/1",
|
||||
# :action => :show, :id => 1, :user_id => 1
|
||||
#
|
||||
def should_route(method, path, options)
|
||||
unless options[:controller]
|
||||
|
|
Loading…
Add table
Reference in a new issue