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

Merge pull request #39952 from tgxworld/fix_incorrect_test

Fix wrong attributes being set in transactions savepoint test.
This commit is contained in:
Eugene Kenny 2020-07-30 09:27:42 +01:00 committed by GitHub
commit 98135434d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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