Created
November 4, 2025 15:39
-
-
Save andyt/0609a5890c7bdf313259133da803497a to your computer and use it in GitHub Desktop.
De-dupe deprecation warnings in Rails test output
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| config.active_support.deprecation = proc do |message| | |
| @deprecation_messages ||= [] | |
| unless @deprecation_messages.include?(message) | |
| @deprecation_messages << message | |
| warn message | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment