Skip to content

Commit

Permalink
Minor fix to make deprecation tests pass when using rake testW0
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//src/minitest/dev/": change = 14270]
  • Loading branch information
zenspider committed Jul 31, 2024
1 parent 6a6945e commit 2bd62c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/minitest/metametameta.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def error_on_warn?
end

def assert_deprecation re = /DEPRECATED/
re = // if $-w.nil? # "skip" if running `rake testW0`
assert_output "", re do
yield
end
Expand Down

0 comments on commit 2bd62c5

Please sign in to comment.