fixed comment test

This commit is contained in:
albert
2011-05-16 09:27:06 -04:00
parent 903a3fa5d1
commit 158810d9f0
20 changed files with 174 additions and 58 deletions

View File

@@ -40,7 +40,8 @@ class UserTest < ActiveSupport::TestCase
user = Factory.create(:user)
assert(user.can_comment_vote?)
12.times do
Factory.create(:comment_vote, :user => user)
comment = Factory.create(:comment)
Factory.create(:comment_vote, :user => user, :comment_id => comment.id)
end
assert(!user.can_comment_vote?)
CommentVote.update_all("created_at = '1990-01-01'")