Skip to content

Commit

Permalink
Merge pull request rails#53292 from yahonda/diag53266
Browse files Browse the repository at this point in the history
Allow `warning: redefining 'object_id' may cause serious problems` in the `TransactionCallbacksTest`
  • Loading branch information
yahonda authored Oct 15, 2024
2 parents 3f1f217 + ed18925 commit 1ecc84a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion activesupport/lib/active_support/testing/strict_warnings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ class WarningError < StandardError; end
/Failed to validate the schema cache because/,

# TODO: We need to decide what to do with this.
/Status code :unprocessable_entity is deprecated/
/Status code :unprocessable_entity is deprecated/,

# Allow this warning only in the `TransactionCallbacksTest`.
%r{.*/rails/activerecord/test/cases/transaction_callbacks_test\.rb:\d+: warning: redefining 'object_id' may cause serious problems}
)

SUPPRESSED_WARNINGS = Regexp.union(
Expand Down

0 comments on commit 1ecc84a

Please sign in to comment.