Skip to content

Commit

Permalink
provide SQL order in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Jan 31, 2012
1 parent c88edf1 commit b41efc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/finders/active_record_spec.rb
Expand Up @@ -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
Expand Down

0 comments on commit b41efc1

Please sign in to comment.