Skip to content

Instantly share code, notes, and snippets.

@djwonk
Created September 18, 2008 22:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djwonk/11503 to your computer and use it in GitHub Desktop.
Save djwonk/11503 to your computer and use it in GitHub Desktop.
# /spec/public/controller/url_spec.rb
# round 'bout line 118
it "should match with an object as second arg and preserve content type" do
@monkey = Monkey.new
@controller.content_type = :xml
@controller.url(:monkey, @monkey).should == "/monkeys/45.xml"
end
# should match with an object as second arg and preserve content type
# expected: "/monkeys/45.xml",
# got: "/monkeys/45" (using ==)
# ./spec/public/controller/url_spec.rb:121
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment