Allyl Isocyanate
Allyl Isocyanate

Reputation: 13626

RSpec returning innaccurate time for length of run

I'm seeing

"Finished in 19641310.62 seconds"

When in actuality its about 70 seconds. I'm running rspec 2.5 under spork.

Upvotes: 1

Views: 95

Answers (2)

Luke Cowell
Luke Cowell

Reputation: 703

I saw this once before when I was using TimeCop. I set the time to be in the past using TimeCop and never called return to set it back to the present time. Are you using TimeCop or do you manipulate the time in your test suite anywhere ?

You could also narrow down the problem file by calling: rspec spec/models or rspec spec/model/user_spec.rb from the command line and see which file introduces this time issue.

Upvotes: 3

Cydonia7
Cydonia7

Reputation: 3846

You can use time command if you're on a UNIX system ;)

Example : time rspec spec/

Upvotes: 0

Related Questions