Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to set Rails deprecations behavior during tests
Set the desired deprecation behavior via RAILS_DEPRECATIONS_BEHAVIOR ENV var. Defaults to :stderr. Possible values are - raise - Raise ActiveSupport::DeprecationException. - stderr - Log all deprecation warnings to $stderr. - log - Log all deprecation warnings to Rails.logger. - notify - Use ActiveSupport::Notifications to notify deprecation.rails. - report - Use ActiveSupport::ErrorReporter to report deprecations. - silence - Do nothing Refs: https://api.rubyonrails.org/classes/ActiveSupport/Deprecation/Behavior.html
- Loading branch information