diff options
author | Jon Leighton <j@jonathanleighton.com> | 2012-04-26 17:29:22 +0100 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2012-04-26 18:04:41 +0100 |
commit | 759d302db851754a73ec4c74e951f8a5faf2bee1 (patch) | |
tree | b66b66f316f9cec57735197e59472f8ea52e9b0a /activerecord/test/cases/associations/has_many_associations_test.rb | |
parent | f6ddb13113ac5cb4e75a7d041a1ff15a036fa0f3 (diff) | |
download | rails-759d302db851754a73ec4c74e951f8a5faf2bee1.tar.gz rails-759d302db851754a73ec4c74e951f8a5faf2bee1.tar.bz2 rails-759d302db851754a73ec4c74e951f8a5faf2bee1.zip |
remove deprecate #calculate calls
Diffstat (limited to 'activerecord/test/cases/associations/has_many_associations_test.rb')
-rw-r--r-- | activerecord/test/cases/associations/has_many_associations_test.rb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/activerecord/test/cases/associations/has_many_associations_test.rb b/activerecord/test/cases/associations/has_many_associations_test.rb index af730202c4..321dae4143 100644 --- a/activerecord/test/cases/associations/has_many_associations_test.rb +++ b/activerecord/test/cases/associations/has_many_associations_test.rb @@ -249,16 +249,8 @@ class HasManyAssociationsTest < ActiveRecord::TestCase assert_equal 2, Firm.find(:first, :order => "id").plain_clients.count end - def test_counting_with_empty_hash_conditions - assert_equal 2, Firm.find(:first, :order => "id").plain_clients.count(:conditions => {}) - end - - def test_counting_with_single_conditions - assert_equal 1, Firm.find(:first, :order => "id").plain_clients.count(:conditions => ['name=?', "Microsoft"]) - end - def test_counting_with_single_hash - assert_equal 1, Firm.find(:first, :order => "id").plain_clients.count(:conditions => {:name => "Microsoft"}) + assert_equal 1, Firm.find(:first, :order => "id").plain_clients.where(:name => "Microsoft").count end def test_counting_with_column_name_and_hash |