Commit 465fab89505bbb08c15de06d106c9380c2643d96

Authored by Victor Costa
1 parent 95fbb07a

rails3: fix community test related to action_tracker

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
test/unit/community_test.rb
@@ -293,8 +293,8 @@ class CommunityTest < ActiveSupport::TestCase @@ -293,8 +293,8 @@ class CommunityTest < ActiveSupport::TestCase
293 p3 = fast_create(Person) 293 p3 = fast_create(Person)
294 community.add_member(p3) 294 community.add_member(p3)
295 article = create(TextileArticle, :profile_id => community.id) 295 article = create(TextileArticle, :profile_id => community.id)
296 - time = article.activity.updated_at  
297 - Time.stubs(:now).returns(time + 1.day) 296 + time = article.activity.updated_at + 1.day
  297 + Time.stubs(:now).returns(time)
298 create(Comment, :source_id => article.id, :title => 'some', :body => 'some', :author_id => p2.id) 298 create(Comment, :source_id => article.id, :title => 'some', :body => 'some', :author_id => p2.id)
299 process_delayed_job_queue 299 process_delayed_job_queue
300 assert_equal time, article.activity.updated_at 300 assert_equal time, article.activity.updated_at