Skip to content

Commit 027cef5

Browse files
committed
Suppress deprecation warning for $\ since ruby 3.0
1 parent c2eeae2 commit 027cef5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_trace_output.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,17 @@ def test_trace_handles_nil_objects
4141
end
4242

4343
def test_trace_issues_single_io_for_args_multiple_strings_and_alternate_sep
44+
verbose, $VERBOSE = $VERBOSE, nil
4445
old_sep = $\
4546
$\ = "\r"
47+
$VERBOSE = verbose
4648
spy = PrintSpy.new
4749
trace_on(spy, "HI\r", "LO")
4850
assert_equal "HI\rLO\r", spy.result
4951
assert_equal 1, spy.calls
5052
ensure
53+
$VERBOSE = nil
5154
$\ = old_sep
55+
$VERBOSE = verbose
5256
end
5357
end

0 commit comments

Comments
 (0)