aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2005-06-24 20:23:38 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2005-06-24 20:23:38 +0000
commitc8e2cf3ed0c35205ff80bded5232924685f5904a (patch)
tree998f54b2b8aa180f3968692df825311066da28da /activerecord/test
parent28012e68fe2837207a9319a24c541eabfc5b3ff7 (diff)
downloadrails-c8e2cf3ed0c35205ff80bded5232924685f5904a.tar.gz
rails-c8e2cf3ed0c35205ff80bded5232924685f5904a.tar.bz2
rails-c8e2cf3ed0c35205ff80bded5232924685f5904a.zip
Pass association finder arguments through to the association class exactly as we received them. Fixes case where parent.children.find() is interpreted as Child.find([]) instead of Child.find().
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1498 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test')
-rwxr-xr-xactiverecord/test/associations_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/associations_test.rb b/activerecord/test/associations_test.rb
index 6fb8757153..52dc1a7359 100755
--- a/activerecord/test/associations_test.rb
+++ b/activerecord/test/associations_test.rb
@@ -316,7 +316,7 @@ class HasManyAssociationsTest < Test::Unit::TestCase
end
def test_find_ids
- firm = Firm.find_first
+ firm = Firm.find(:first)
assert_raises(ActiveRecord::RecordNotFound) { firm.clients.find }