Skip to content

Instantly share code, notes, and snippets.

@erik-megarad
Created May 15, 2012 19:08
Show Gist options
  • Save erik-megarad/2704272 to your computer and use it in GitHub Desktop.
Save erik-megarad/2704272 to your computer and use it in GitHub Desktop.
Fuck you. Just... Fuck. you.
Failures:
1) Foo timestamp
Failure/Error: its(:timestamp) { should eql timestamp }
expected: Tue, 15 May 2012 19:06:00 UTC +00:00
got: Tue, 15 May 2012 19:06:00 UTC +00:00
(compared using eql?)
Diff:2012-05-15 19:06:00 UTC.==(2012-05-15 19:06:00 UTC) returned false even though the diff between 2012-05-15 19:06:00 UTC and 2012-05-15 19:06:00 UTC is empty. Check the implementation of 2012-05-15 19:06:00 UTC.==.
# ./spec/models/foo_spec.rb:40:in `block (3 levels) in <top (required)>'
Finished in 0.10041 seconds
8 examples, 1 failure
@maletor
Copy link

maletor commented Aug 13, 2012

What's the solution?

@maletor
Copy link

maletor commented Aug 13, 2012

Addendum: I feel your pain.

@erik-megarad
Copy link
Author

For some reason I didn't get notified of that comment, but I always solve this problem by using to_i. It's really shitty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment