I'm running rails 3.2.1 with rspec 2.8.1 on ruby 1.9.3p0 and when running my tests it shows a negative time value. This is annoying as I'm trying optimise my tests.
Running: spec/models/transaction_spec.rb
................................................
Finished in -7603162.49414 seconds
I've tried updating rspec to 2.9.0 but this didn't help.
Are you using the timecop gem? Make sure you Timecop.return
after freezing. Either that or you're stubbing a date/time method somewhere.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With