From 554aa2e1e99c082891eae991506c9a2f4e49185a Mon Sep 17 00:00:00 2001 From: Marcel Molina Date: Sun, 22 Jan 2006 20:55:14 +0000 Subject: Add explicit :order in finder tests as postgresql orders results differently by default. Closes #3577. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3464 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/CHANGELOG | 2 ++ activerecord/test/finder_test.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG index e487582882..56ebe5041c 100644 --- a/activerecord/CHANGELOG +++ b/activerecord/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Add explicit :order in finder tests as postgresql orders results differently by default. #3577. [Rick Olson] + * Make dynamic finders honor additional passed in :conditions. #3569 [Oleg Pudeyev , Marcel Molina Jr.] * Show a meaningful error when the DB2 adapter cannot be loaded due to missing dependencies. [Nicholas Seckar] diff --git a/activerecord/test/finder_test.rb b/activerecord/test/finder_test.rb index 61d5c20e98..c197663439 100644 --- a/activerecord/test/finder_test.rb +++ b/activerecord/test/finder_test.rb @@ -201,7 +201,7 @@ class FinderTest < Test::Unit::TestCase end def test_find_by_one_attribute_with_order_option - assert_equal accounts(:signals37), Account.find_by_credit_limit(50) + assert_equal accounts(:signals37), Account.find_by_credit_limit(50, :order => 'id') assert_equal accounts(:rails_core_account), Account.find_by_credit_limit(50, :order => 'id DESC') end -- cgit v1.2.3