Skip to content

Instantly share code, notes, and snippets.

@ehrenmurdick
Created October 1, 2009 17:45
Show Gist options
  • Save ehrenmurdick/199127 to your computer and use it in GitHub Desktop.
Save ehrenmurdick/199127 to your computer and use it in GitHub Desktop.
it "should map route stuff" do
route_for(:controller => "institutions", :action => "destroy", :id => "1").should == "/institutions/1"
end
# The recognized options <{"action"=>"show", "id"=>"1", "controller"=>"institutions"}> did not match <{"action"=>"destroy", "id"=>"1", "controller"=>"institutions"}>, difference: <{"action"=>"destroy"}>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment