diff options
author | Marcel Molina <marcel@vernix.org> | 2006-01-22 20:55:14 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2006-01-22 20:55:14 +0000 |
commit | 554aa2e1e99c082891eae991506c9a2f4e49185a (patch) | |
tree | ab5aeece8c09126f292f40183417bae5abe0408d | |
parent | 297618bddc59cdc4aaca76711874b774f9838afe (diff) | |
download | rails-554aa2e1e99c082891eae991506c9a2f4e49185a.tar.gz rails-554aa2e1e99c082891eae991506c9a2f4e49185a.tar.bz2 rails-554aa2e1e99c082891eae991506c9a2f4e49185a.zip |
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
-rw-r--r-- | activerecord/CHANGELOG | 2 | ||||
-rw-r--r-- | activerecord/test/finder_test.rb | 2 |
2 files changed, 3 insertions, 1 deletions
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 <pudeyo@rpi.edu>, 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 |