diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-07-20 13:38:37 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-07-20 14:59:19 +0900 |
commit | 840115bf46476dc2b3c175f7716b4d6000906f40 (patch) | |
tree | d44ac2156c10e4e0160b48873b304cd5e8e84831 /spec/ruby/core/kernel | |
parent | d2bf6133f6f37279505ab8f9b1dcfc5a48b70345 (diff) | |
download | ruby-840115bf46476dc2b3c175f7716b4d6000906f40.tar.gz |
Make StringIO encoding fixed
Get rid of affects by default external encoding.
Diffstat (limited to 'spec/ruby/core/kernel')
-rw-r--r-- | spec/ruby/core/kernel/printf_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/kernel/printf_spec.rb b/spec/ruby/core/kernel/printf_spec.rb index d1743dbcde..d8f93ce429 100644 --- a/spec/ruby/core/kernel/printf_spec.rb +++ b/spec/ruby/core/kernel/printf_spec.rb @@ -41,7 +41,7 @@ describe "Kernel.printf" do context "io is specified" do it_behaves_like :kernel_sprintf, -> format, *args { - io = StringIO.new + io = StringIO.new(+"") Kernel.printf(io, format, *args) io.string } @@ -51,7 +51,7 @@ describe "Kernel.printf" do it_behaves_like :kernel_sprintf, -> format, *args { stdout = $stdout begin - $stdout = io = StringIO.new + $stdout = io = StringIO.new(+"") Kernel.printf(format, *args) io.string ensure |