diff options
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/autosave_association_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/cases/autosave_association_test.rb b/activerecord/test/cases/autosave_association_test.rb index 656798300d..6dbc419eb5 100644 --- a/activerecord/test/cases/autosave_association_test.rb +++ b/activerecord/test/cases/autosave_association_test.rb @@ -342,9 +342,9 @@ class TestDefaultAutosaveAssociationOnABelongsToAssociation < ActiveRecord::Test end def test_association_is_not_overwitten_on_autosave - firm_1 = Firm.create!(name: 'Apple') - firm_2 = Firm.create!(name: 'Microsoft') - client = Client.create!(firm: firm_1, name: 'Business') + firm_1 = Firm.create!(:name => 'Apple') + firm_2 = Firm.create!(:name => 'Microsoft') + client = Client.create!(:firm => firm_1, :name => 'Business') assert_equal firm_1.id, client.client_of client.client_of = firm_2.id |