mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@8d74d49
This commit is contained in:
parent
c940397116
commit
d80e44deec
157 changed files with 581 additions and 543 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue