Permalink
Browse files

Add explicit :order in finder tests as postgresql orders results diff…

…erently by default. Closes #3577.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3464 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 297618b commit 554aa2e1e99c082891eae991506c9a2f4e49185a Marcel Molina committed Jan 22, 2006
Showing with 3 additions and 1 deletion.
  1. +2 −0 activerecord/CHANGELOG
  2. +1 −1 activerecord/test/finder_test.rb
View
@@ -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]
@@ -201,7 +201,7 @@ def test_find_by_one_attribute
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

0 comments on commit 554aa2e

Please sign in to comment.