fix regressions and use timecop to fix time in tests. Thanks Dan and Hans!

This commit is contained in:
Reinier Balt 2013-01-06 16:01:53 +01:00
parent 0d169c4a97
commit e59fa387fa
7 changed files with 78 additions and 79 deletions

View file

@ -129,7 +129,7 @@ module TracksStepHelper
start_time = Time.now
page.evaluate_script('jQuery.isReady&&jQuery.active==0').class.should_not eql(String)
until(page.evaluate_script('jQuery.isReady&&jQuery.active==0') || (start_time + 5.seconds) < Time.now)
sleep 1
sleep 0.25
end
end