From 749b403d134837010cb97273b7a397b0d44dc741 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonne=20Ha=C3=9F?= Date: Tue, 10 Apr 2012 12:32:17 +0200 Subject: [PATCH] ensure that time is always far beyond last post creation oh yeah Timecop is really the best solution... hmpf --- features/support/publishing_cuke_helpers.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/support/publishing_cuke_helpers.rb b/features/support/publishing_cuke_helpers.rb index 26f8914f5..579440218 100644 --- a/features/support/publishing_cuke_helpers.rb +++ b/features/support/publishing_cuke_helpers.rb @@ -1,10 +1,10 @@ module PublishingCukeHelpers def make_post(text) - @@last_post_time ||= Time.now - Timecop.travel @@last_post_time += 1.minute 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)