I've seen that one too. Maybe has to do with how equality is defined in the Time or DateTime class.<br><br>I get around it by comparing the string-ified versions:<br><br> foo.time.to_s.should == expected_time.to_s<br>
<br><br><br><div class="gmail_quote">On Sat, May 3, 2008 at 9:17 AM, Joe Van Dyk <<a href="mailto:joe@pinkpucker.net">joe@pinkpucker.net</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I occasionally get this error:<br>
<br>
1)<br>
'A puzzle once featured, should no longer be nominated' FAILED<br>
expected: Sun May 04 09:10:26 -0700 2008,<br>
got: Sun May 04 09:10:26 -0700 2008 (using ==)<br>
./spec/models/puzzle_spec.rb:180:<br>
<br>
<br>
<br>
So, the dates looks the same to me. Any ideas for how to debug?<br>
<br>
Joe<br>
_______________________________________________<br>
rspec-users mailing list<br>
<a href="mailto:rspec-users@rubyforge.org">rspec-users@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/rspec-users" target="_blank">http://rubyforge.org/mailman/listinfo/rspec-users</a><br>
</blockquote></div><br>