From 96a1c88ecef9be91bd2b72b38669976ef462d511 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Thu, 30 Jul 2020 16:13:19 +0800 Subject: [PATCH] Fix wrong attributes being set in transactions savepoint test. --- activerecord/test/cases/transactions_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/activerecord/test/cases/transactions_test.rb b/activerecord/test/cases/transactions_test.rb index 8537771e5d..63dd98d2d7 100644 --- a/activerecord/test/cases/transactions_test.rb +++ b/activerecord/test/cases/transactions_test.rb @@ -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