Created
May 15, 2012 19:08
-
-
Save erik-megarad/2704272 to your computer and use it in GitHub Desktop.
Fuck you. Just... Fuck. you.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Addendum: I feel your pain.
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
What's the solution?