Skip to content

Instantly share code, notes, and snippets.

@andyt
Created November 4, 2025 15:39
Show Gist options
  • Select an option

  • Save andyt/0609a5890c7bdf313259133da803497a to your computer and use it in GitHub Desktop.

Select an option

Save andyt/0609a5890c7bdf313259133da803497a to your computer and use it in GitHub Desktop.
De-dupe deprecation warnings in Rails test output
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