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
|
@ -31,13 +31,13 @@ describe "ARGF.binmode" do
|
|||
end
|
||||
end
|
||||
|
||||
it "sets the file's encoding to ASCII-8BIT" do
|
||||
it "sets the file's encoding to BINARY" do
|
||||
argf [@bin_file, @file1] do
|
||||
@argf.binmode
|
||||
@argf.binmode?.should == true
|
||||
@argf.gets.encoding.should == Encoding::ASCII_8BIT
|
||||
@argf.gets.encoding.should == Encoding::BINARY
|
||||
@argf.skip
|
||||
@argf.read.encoding.should == Encoding::ASCII_8BIT
|
||||
@argf.read.encoding.should == Encoding::BINARY
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue