Skip to content

Instantly share code, notes, and snippets.

@base10
Created April 22, 2009 23:09
Show Gist options
  • Save base10/100158 to your computer and use it in GitHub Desktop.
Save base10/100158 to your computer and use it in GitHub Desktop.
it "should map #edit" do
route_for(:controller => "admin/responses", :action => "edit", :id => "1", :message_id => "1").should == "/contact/admin/messages/1/responses/1/edit"
end
it "should map #update" do
route_for(:controller => "admin/responses", :action => "update", :id => "1", :message_id => "1").should == { :path => "/contact/admin/messages/1/responses/1", :method => :put }
end
it "should map #destroy" do
route_for(:controller => "admin/responses", :action => "destroy", :id => "1", :message_id => "1").should == { :path => "/contact/admin/messages/1/responses/1", :method => :delete }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment