summaryrefslogtreecommitdiff
path: root/spec/ruby/core/io
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-01-20 17:53:46 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-02-23 13:37:40 +0900
commit6298ec2875a6f1a1e75698c96ceac94362f20bcf (patch)
tree70143b5c6d6df6dfdc7a0ea2707a050fbdc59131 /spec/ruby/core/io
parent588a86e32c9e646823e1436e53ffe1c37206abd3 (diff)
Warn non-nil `$\` [Feature #14240]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2920
Diffstat (limited to 'spec/ruby/core/io')
-rw-r--r--spec/ruby/core/io/print_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/io/print_spec.rb b/spec/ruby/core/io/print_spec.rb
index 2021cd5420..0e8805348e 100644
--- a/spec/ruby/core/io/print_spec.rb
+++ b/spec/ruby/core/io/print_spec.rb
@@ -4,12 +4,12 @@ require_relative 'fixtures/classes'
describe IO, "#print" do
before :each do
@old_separator = $\
- $\ = '->'
+ suppress_warning {$\ = '->'}
@name = tmp("io_print")
end
after :each do
- $\ = @old_separator
+ suppress_warning {$\ = @old_separator}
rm_r @name
end