From 5944bfdee479baf3828460db76e492965fc9f7d6 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Sat, 25 Aug 2012 15:56:09 -0300 Subject: [PATCH] Avoid transient test failures --- test/unit/comment_test.rb | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/test/unit/comment_test.rb b/test/unit/comment_test.rb index 4a46c4c..cbcd09f 100644 --- a/test/unit/comment_test.rb +++ b/test/unit/comment_test.rb @@ -398,6 +398,9 @@ class CommentTest < ActiveSupport::TestCase end should 'update article activity when add a comment' do + now = Time.now + Time.stubs(:now).returns(now) + profile = create_user('testuser').person article = create(TinyMceArticle, :profile => profile) -- libgit2 0.21.2