Guest User

Untitled

a guest
Jun 20th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. describe "routing" do
  2. it "recognizes and generates #delete" do
  3. { :delete => "/discussions/posts/1/votes/1" }.should route_to(:controller => "discussions/votes", :action => "destroy", :id => "1", :post_id => "1")
  4. end
  5. it "recognizes and generates #create" do
  6. { :post => "/discussions/posts/1/votes" }.should route_to(:controller => "discussions/votes", :action => "create", :post_id => '1')
  7. end
  8. end
Add Comment
Please, Sign In to add comment