diff --git a/activerecord/test/cases/associations/has_one_associations_test.rb b/activerecord/test/cases/associations/has_one_associations_test.rb index 8796b03eaf..f3cc97d50f 100644 --- a/activerecord/test/cases/associations/has_one_associations_test.rb +++ b/activerecord/test/cases/associations/has_one_associations_test.rb @@ -488,7 +488,7 @@ class HasOneAssociationsTest < ActiveRecord::TestCase assert_equal new_account.firm_name, "Account" end - def test_creation_failure_without_dependent_option + def test_create_association_replaces_existing_without_dependent_option pirate = pirates(:blackbeard) orig_ship = pirate.ship @@ -501,7 +501,7 @@ class HasOneAssociationsTest < ActiveRecord::TestCase assert_not orig_ship.changed? # check it was saved end - def test_creation_failure_with_dependent_option + def test_create_association_replaces_existing_with_dependent_option pirate = pirates(:blackbeard).becomes(DestructivePirate) orig_ship = pirate.dependent_ship