aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2012-04-26 15:51:23 +0100
committerJon Leighton <j@jonathanleighton.com>2012-04-26 18:04:41 +0100
commitf6ddb13113ac5cb4e75a7d041a1ff15a036fa0f3 (patch)
tree0444c1021f2c983c1efa80656979d7d39d2789f5 /activerecord/test/cases/associations
parentbd91f70fd7817ddfc6eda5d8ab7d0c0e42be6a00 (diff)
downloadrails-f6ddb13113ac5cb4e75a7d041a1ff15a036fa0f3.tar.gz
rails-f6ddb13113ac5cb4e75a7d041a1ff15a036fa0f3.tar.bz2
rails-f6ddb13113ac5cb4e75a7d041a1ff15a036fa0f3.zip
remove deprecated #find_in_batches calls
Diffstat (limited to 'activerecord/test/cases/associations')
-rw-r--r--activerecord/test/cases/associations/has_many_associations_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/has_many_associations_test.rb b/activerecord/test/cases/associations/has_many_associations_test.rb
index 6a4f972356..af730202c4 100644
--- a/activerecord/test/cases/associations/has_many_associations_test.rb
+++ b/activerecord/test/cases/associations/has_many_associations_test.rb
@@ -465,7 +465,7 @@ class HasManyAssociationsTest < ActiveRecord::TestCase
firm = companies(:first_firm)
assert_queries(2) do
- firm.clients.find_each(:batch_size => 1, :conditions => {:name => "Microsoft"}) do |c|
+ firm.clients.where(name: 'Microsoft').find_each(batch_size: 1) do |c|
assert_equal firm.id, c.firm_id
assert_equal "Microsoft", c.name
end