summaryrefslogtreecommitdiff
path: root/spec/ruby/core/io/shared/new.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/io/shared/new.rb')
-rw-r--r--spec/ruby/core/io/shared/new.rb4
1 files changed, 2 insertions, 2 deletions
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