Skip to content

Commit 1bf82b2

Browse files
committed
activerecord: stabilize a test
1 parent 8b7d676 commit 1bf82b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/test/models/post.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
class Post < ActiveRecord::Base
22
named_scope :with_type_self, lambda{{:conditions => ["type=?", self.name]}}
33
named_scope :containing_the_letter_a, :conditions => "body LIKE '%a%'"
4-
named_scope :ranked_by_comments, :order => "comments_count DESC"
4+
named_scope :ranked_by_comments, :order => "comments_count DESC, id DESC"
55
named_scope :limit, lambda {|limit| {:limit => limit} }
66
named_scope :with_authors_at_address, lambda { |address| {
77
:conditions => [ 'authors.author_address_id = ?', address.id ],

0 commit comments

Comments
 (0)