This doesn't work altogether, fix it yourself [ci skip]

Revert "ensure that time is always far beyond last post creation"

This reverts commit 749b403d13.

Revert "make Timecop travel persistent for the whole run"

This reverts commit 5d9bdd80ab.

Revert "Timecop post creation for cucumber"

This reverts commit dba3dbbfeb.
This commit is contained in:
Jonne Haß 2012-04-10 12:55:00 +02:00
parent 749b403d13
commit 79acc2c4cf
2 changed files with 6 additions and 2 deletions

View file

@ -5,8 +5,11 @@ Feature: The activity stream
When I sign in as "bob@bob.bob"
And I post "A- I like turtles"
And I wait for 1 second
And I post "B- barack obama is your new bicycle"
And I wait for 1 second
And I post "C- barack obama is a square"
And I wait for 1 second
When I go to the activity stream page
Then "C- barack obama is a square" should be post 1
@ -14,8 +17,11 @@ Feature: The activity stream
And "A- I like turtles" should be post 3
When I like the post "A- I like turtles"
And I wait for 1 second
And I comment "Sassy sawfish" on "C- barack obama is a square"
And I wait for 1 second
And I like the post "B- barack obama is your new bicycle"
And I wait for 1 second
When I go to the activity stream page
Then "B- barack obama is your new bicycle" should be post 1

View file

@ -3,8 +3,6 @@ module PublishingCukeHelpers
fill_in 'status_message_fake_text', :with => text
click_button :submit
wait_for_ajax_to_finish
@@last_post_time ||= Time.now
Timecop.travel @@last_post_time += 1.minute
end
def click_and_post(text)