Skip to content

Instantly share code, notes, and snippets.

Created February 18, 2014 21:14
Show Gist options
  • Save anonymous/9080243 to your computer and use it in GitHub Desktop.
Save anonymous/9080243 to your computer and use it in GitHub Desktop.
it "raises no exception on valid status input" do
expect {@res.status="success"}.not_to raise_error
expect {@res.status}.to eql("success")
end
output:
Failure/Error: expect {@res.status}.to eql("success")
expected: "success"
got: #<Proc:0xb6fd3e8@/../remote_upload_ressource_spec.rb:17>
(compared using eql?)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment