This doesn't work altogether, fix it yourself [ci skip]
Revert "ensure that time is always far beyond last post creation" This reverts commit749b403d13. Revert "make Timecop travel persistent for the whole run" This reverts commit5d9bdd80ab. Revert "Timecop post creation for cucumber" This reverts commitdba3dbbfeb.
This commit is contained in:
parent
749b403d13
commit
79acc2c4cf
2 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue