improved artist test

This commit is contained in:
albert
2013-01-11 16:38:06 -05:00
parent 8749c43b3e
commit c7ffda81bf
4 changed files with 20 additions and 1 deletions

View File

@@ -11,7 +11,7 @@ class CommentVote < ActiveRecord::Base
validates_inclusion_of :score, :in => [-1, 1], :message => "must be 1 or -1"
def self.prune!
destroy_all(["created_at < ?", 14.days.ago])
destroy_all("created_at < ?", 14.days.ago)
end
def validate_user_can_vote