From 781ea363f8b0a2102e84aa4d7232853afed64e53 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Thu, 23 May 2013 11:14:06 -0300 Subject: [PATCH] Fixing forum helper test --- test/unit/forum_helper_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/forum_helper_test.rb b/test/unit/forum_helper_test.rb index bd12a37..aa55bec 100644 --- a/test/unit/forum_helper_test.rb +++ b/test/unit/forum_helper_test.rb @@ -48,8 +48,8 @@ class ForumHelperTest < ActiveSupport::TestCase should 'return last comment date if it has comments' do some_post = TextileArticle.create!(:name => 'First post', :profile => profile, :parent => forum, :published => true) a1, a2 = create_user('a1').person, create_user('a2').person - some_post.comments << Comment.new(:title => 'test', :body => 'test', :author => a1) - some_post.comments << Comment.new(:title => 'test', :body => 'test', :author => a2) + some_post.comments << Comment.new(:title => 'test', :body => 'test', :author => a1, :created_at => Time.now - 1.day) + some_post.comments << Comment.new(:title => 'test', :body => 'test', :author => a2, :created_at => Time.now) c = Comment.last assert_equal 2, some_post.comments.count out = last_topic_update(some_post) -- libgit2 0.21.2