Skip to content

Commit 9b98d93

Browse files
committed
emit deprecation warnings in test environment
1 parent b41b48c commit 9b98d93

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_helper.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
require file
66
end
77

8+
if RUBY_VERSION >= '2.7.2'
9+
# NOTE: https://bugs.ruby-lang.org/issues/17000
10+
Warning[:deprecated] = true
11+
end
812

913
# unless Object.const_defined? 'PryStackExplorer'
1014
$:.unshift File.expand_path '../../lib', __FILE__

0 commit comments

Comments
 (0)