From d80e44deec77678fe2d72f94c17b2409b3e794d5 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Thu, 27 Jun 2019 21:02:36 +0200 Subject: Update to ruby/spec@8d74d49 --- spec/ruby/core/io/shared/new.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/ruby/core/io/shared') diff --git a/spec/ruby/core/io/shared/new.rb b/spec/ruby/core/io/shared/new.rb index ea22f40090..f6069a4cdc 100644 --- a/spec/ruby/core/io/shared/new.rb +++ b/spec/ruby/core/io/shared/new.rb @@ -168,13 +168,13 @@ describe :io_new, shared: true do it "sets external encoding to binary with binmode in mode string" do @io = IO.send(@method, @fd, 'wb') - @io.external_encoding.to_s.should == 'ASCII-8BIT' + @io.external_encoding.should == Encoding::BINARY end # #5917 it "sets external encoding to binary with :binmode option" do @io = IO.send(@method, @fd, 'w', {binmode: true}) - @io.external_encoding.to_s.should == 'ASCII-8BIT' + @io.external_encoding.should == Encoding::BINARY end it "does not use binary encoding when mode encoding is specified" do -- cgit v1.2.3