Permalink
Browse files

provide SQL order in tests

  • Loading branch information...
1 parent c88edf1 commit b41efc1cf77ec39c27e01ab3462686af910044b4 @mislav committed Jan 31, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 spec/finders/active_record_spec.rb
View
3 spec/finders/active_record_spec.rb
@@ -279,7 +279,8 @@
end
it "should paginate with :conditions" do
- result = Topic.paginate :page => 1, :conditions => ["created_at > ?", 30.minutes.ago]
+ result = Topic.paginate :page => 1, :order => 'id ASC',
+ :conditions => ["created_at > ?", 30.minutes.ago]
result.should == topics(:rails, :ar)
result.total_pages.should == 1
end

0 comments on commit b41efc1

Please sign in to comment.