diff options
Diffstat (limited to 'activerecord/test/associations_test.rb')
-rwxr-xr-x | activerecord/test/associations_test.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/activerecord/test/associations_test.rb b/activerecord/test/associations_test.rb index 9da5552c09..6b97a92612 100755 --- a/activerecord/test/associations_test.rb +++ b/activerecord/test/associations_test.rb @@ -30,18 +30,12 @@ class AssociationsTest < Test::Unit::TestCase firm.save firm.clients.each {|c|} # forcing to load all clients assert firm.clients.empty?, "New firm shouldn't have client objects" - assert_deprecated do - assert !firm.has_clients?, "New firm shouldn't have clients" - end assert_equal 0, firm.clients.size, "New firm should have 0 clients" client = Client.new("name" => "TheClient.com", "firm_id" => firm.id) client.save assert firm.clients.empty?, "New firm should have cached no client objects" - assert_deprecated do - assert !firm.has_clients?, "New firm should have cached a no-clients response" - end assert_equal 0, firm.clients.size, "New firm should have cached 0 clients count" assert !firm.clients(true).empty?, "New firm should have reloaded client objects" @@ -215,12 +209,6 @@ class HasOneAssociationsTest < Test::Unit::TestCase assert_equal [account_id], Account.destroyed_account_ids[firm.id] end - def test_deprecated_exclusive_dependence - assert_deprecated(/:exclusively_dependent.*:dependent => :delete_all/) do - Firm.has_many :deprecated_exclusively_dependent_clients, :class_name => 'Client', :exclusively_dependent => true - end - end - def test_exclusive_dependence num_accounts = Account.count |