Skip to content

Commit

Permalink
Merge pull request #378 from nobu/suppress-warning
Browse files Browse the repository at this point in the history
Suppress deprecation warning for `$\` since ruby 3.0
  • Loading branch information
hsbt authored Apr 23, 2021
2 parents 8d323b9 + 027cef5 commit 0ce7938
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_trace_output.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,17 @@ def test_trace_handles_nil_objects
end

def test_trace_issues_single_io_for_args_multiple_strings_and_alternate_sep
verbose, $VERBOSE = $VERBOSE, nil
old_sep = $\
$\ = "\r"
$VERBOSE = verbose
spy = PrintSpy.new
trace_on(spy, "HI\r", "LO")
assert_equal "HI\rLO\r", spy.result
assert_equal 1, spy.calls
ensure
$VERBOSE = nil
$\ = old_sep
$VERBOSE = verbose
end
end

0 comments on commit 0ce7938

Please sign in to comment.