开发者

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.


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.


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

Example : time rspec spec/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜