Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe "routing" do
- it "recognizes and generates #delete" do
- { :delete => "/discussions/posts/1/votes/1" }.should route_to(:controller => "discussions/votes", :action => "destroy", :id => "1", :post_id => "1")
- end
- it "recognizes and generates #create" do
- { :post => "/discussions/posts/1/votes" }.should route_to(:controller => "discussions/votes", :action => "create", :post_id => '1')
- end
- end
Add Comment
Please, Sign In to add comment