From 465fab89505bbb08c15de06d106c9380c2643d96 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Thu, 20 Feb 2014 18:17:10 -0300 Subject: [PATCH] rails3: fix community test related to action_tracker --- test/unit/community_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/community_test.rb b/test/unit/community_test.rb index 508bbc4..2303f28 100644 --- a/test/unit/community_test.rb +++ b/test/unit/community_test.rb @@ -293,8 +293,8 @@ class CommunityTest < ActiveSupport::TestCase p3 = fast_create(Person) community.add_member(p3) article = create(TextileArticle, :profile_id => community.id) - time = article.activity.updated_at - Time.stubs(:now).returns(time + 1.day) + time = article.activity.updated_at + 1.day + Time.stubs(:now).returns(time) create(Comment, :source_id => article.id, :title => 'some', :body => 'some', :author_id => p2.id) process_delayed_job_queue assert_equal time, article.activity.updated_at -- libgit2 0.21.2