mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@41bf282
This commit is contained in:
parent
5d21050182
commit
a0f5ff4c3c
75 changed files with 851 additions and 143 deletions
|
@ -6,4 +6,18 @@ describe "StringIO#binmode" do
|
|||
io = StringIO.new("example")
|
||||
io.binmode.should equal(io)
|
||||
end
|
||||
|
||||
it "changes external encoding to BINARY" do
|
||||
io = StringIO.new
|
||||
io.external_encoding.should == Encoding.find('locale')
|
||||
io.binmode
|
||||
io.external_encoding.should == Encoding::BINARY
|
||||
end
|
||||
|
||||
it "does not set internal encoding" do
|
||||
io = StringIO.new
|
||||
io.internal_encoding.should == nil
|
||||
io.binmode
|
||||
io.internal_encoding.should == nil
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue