1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
This commit is contained in:
Benoit Daloze 2019-06-27 21:02:36 +02:00
parent c940397116
commit d80e44deec
157 changed files with 581 additions and 543 deletions

View file

@ -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