diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-01-20 17:53:46 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-02-23 13:37:40 +0900 |
commit | 6298ec2875a6f1a1e75698c96ceac94362f20bcf (patch) | |
tree | 70143b5c6d6df6dfdc7a0ea2707a050fbdc59131 /spec/ruby/core/io | |
parent | 588a86e32c9e646823e1436e53ffe1c37206abd3 (diff) | |
download | ruby-6298ec2875a6f1a1e75698c96ceac94362f20bcf.tar.gz |
Warn non-nil `$\` [Feature #14240]
Diffstat (limited to 'spec/ruby/core/io')
-rw-r--r-- | spec/ruby/core/io/print_spec.rb | 4 |
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 |