Skip to content

Commit b56e7a2

Browse files
committed
suppress_warning for ENV#index specs
* Which is more reliable than filtering the warnings as the message or caller might differ.
1 parent 45c4c57 commit b56e7a2

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

lib/mspec/utils/warnings.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ def Warning.warn(message)
4545
when /\/(argf|io|stringio)\/.+(ARGF|IO)#(lines|chars|bytes|codepoints) is deprecated/
4646
when /Thread\.exclusive is deprecated.+\n.+thread\/exclusive_spec\.rb/
4747
when /hash\/shared\/index\.rb:\d+: warning: Hash#index is deprecated; use Hash#key/
48-
when /env\/shared\/key\.rb:\d+: warning: ENV\.index is deprecated; use ENV\.key/
4948
when /exponent(_spec)?\.rb:\d+: warning: in a\*\*b, b may be too big/
5049
when /enumerator\/(new_spec|initialize_spec)\.rb:\d+: warning: Enumerator\.new without a block is deprecated/
5150
when /Pattern matching is experimental, and the behavior may change in future versions of Ruby!/

0 commit comments

Comments
 (0)