From b41efc1cf77ec39c27e01ab3462686af910044b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohnic=CC=81?= Date: Tue, 31 Jan 2012 23:56:31 +0100 Subject: [PATCH] provide SQL order in tests --- spec/finders/active_record_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/finders/active_record_spec.rb b/spec/finders/active_record_spec.rb index f35b75bb7..1ff0b826d 100644 --- a/spec/finders/active_record_spec.rb +++ b/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