Skip to content

Commit 1ecc84a

Browse files
authored
Merge pull request rails#53292 from yahonda/diag53266
Allow `warning: redefining 'object_id' may cause serious problems` in the `TransactionCallbacksTest`
2 parents 3f1f217 + ed18925 commit 1ecc84a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

activesupport/lib/active_support/testing/strict_warnings.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ class WarningError < StandardError; end
1616
/Failed to validate the schema cache because/,
1717

1818
# TODO: We need to decide what to do with this.
19-
/Status code :unprocessable_entity is deprecated/
19+
/Status code :unprocessable_entity is deprecated/,
20+
21+
# Allow this warning only in the `TransactionCallbacksTest`.
22+
%r{.*/rails/activerecord/test/cases/transaction_callbacks_test\.rb:\d+: warning: redefining 'object_id' may cause serious problems}
2023
)
2124

2225
SUPPRESSED_WARNINGS = Regexp.union(

0 commit comments

Comments
 (0)