fixed unit tests

This commit is contained in:
albert
2010-03-18 18:35:16 -04:00
parent 06a959a9fd
commit be10906044
4 changed files with 6 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ class Comment < ActiveRecord::Base
attr_accessor :do_not_bump_post
scope :recent, :order => "comments.id desc", :limit => 6
scope :search_body, lambda {|query| where("body_index @@ plainto_tsquery(?)", query)}
scope :search_body, lambda {|query| where("body_index @@ plainto_tsquery(?)", query).order("comments.id DESC")}
scope :hidden, lambda {|user| where("score < ?", user.comment_threshold)}
def update_last_commented_at