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

View file

@ -90,7 +90,7 @@ Feature: Show done
When I follow "Show all"
Then I should see the page selector
And I should see "40 (1-20)"
When I follow "2"
When I select the second page
Then I should be on the done projects page
And the page should be "2"
@ -109,7 +109,7 @@ Feature: Show done
And I follow "Show all"
Then I should see the page selector
And I should see "40 (1-20)"
When I follow "2"
When I select the second page
Then I should be on the done recurring todos page
And the page should be "2"