Skip to content

Commit

Permalink
Fix deprecated global Deprecation behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
theodorton committed May 28, 2024
1 parent 3d3a915 commit f44250d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/unit_spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@
end
end

ActiveSupport::Deprecation.behavior = :stderr
if Rails::VERSION::STRING >= '7.2'
Rails.application.deprecators.behavior = :stderr
else
ActiveSupport::Deprecation.behavior = :stderr
end

Shoulda::Matchers.configure do |config|
config.integrate do |with|
Expand Down

0 comments on commit f44250d

Please sign in to comment.