1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix wrong attributes being set in transactions savepoint test.

This commit is contained in:
Guo Xiang Tan 2020-07-30 16:13:19 +08:00
parent fa82ea4098
commit 96a1c88ece
No known key found for this signature in database
GPG key ID: FBD110179AAC1F20

View file

@ -520,7 +520,7 @@ class TransactionTest < ActiveRecord::TestCase
begin
Topic.transaction requires_new: true do
@first.happy = false
@first.approved = false
@first.save!
raise
end
@ -541,7 +541,7 @@ class TransactionTest < ActiveRecord::TestCase
begin
@second.transaction requires_new: true do
@first.happy = false
@first.approved = false
@first.save!
raise
end