Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress deprecation warning for $\ since ruby 3.0 #378

Merged
merged 1 commit into from
Apr 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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