Skip to content

Commit

Permalink
+ Enable Ruby deprecation warnings by default. (casperisfine)
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//src/minitest/dev/": change = 13276]
  • Loading branch information
zenspider committed Dec 5, 2021
1 parent 0e1418b commit 5352c9e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/minitest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ module Minitest
# Registers Minitest to run at process exit

def self.autorun
if Object.const_defined?(:Warning) && Warning.respond_to?(:[]=)
Warning[:deprecated] = true
end

at_exit {
next if $! and not ($!.kind_of? SystemExit and $!.success?)

Expand Down

0 comments on commit 5352c9e

Please sign in to comment.