mirror of
https://github.com/github/rails.git
synced 2026-02-03 10:45:01 -05:00
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
This commit is contained in:
@@ -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 @@ 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user