From 027cef57e15c1c86506af2d5b3f9ab182fe57e97 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 17 Feb 2021 16:17:33 +0900 Subject: [PATCH] Suppress deprecation warning for $\ since ruby 3.0 --- test/test_trace_output.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test_trace_output.rb b/test/test_trace_output.rb index 46403870f..4f1a1117e 100644 --- a/test/test_trace_output.rb +++ b/test/test_trace_output.rb @@ -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