Merge pull request #39952 from tgxworld/fix_incorrect_test
Fix wrong attributes being set in transactions savepoint test.
This commit is contained in:
commit
98135434d2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue