mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_io.rb (TestIO#test_open_flag_binary): typo of method name (test method itself, and calling method).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4de35bafbc
commit
8e613749f4
1 changed files with 4 additions and 4 deletions
|
@ -3238,16 +3238,16 @@ End
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_open_flag_binar
|
def test_open_flag_binary
|
||||||
make_tempfile do |t|
|
make_tempfile do |t|
|
||||||
open(t.path, File::RDONLY, flags: File::BINARY) do |f|
|
open(t.path, File::RDONLY, flags: File::BINARY) do |f|
|
||||||
assert_equal true, f.binmode
|
assert_equal true, f.binmode?
|
||||||
end
|
end
|
||||||
open(t.path, 'r', flags: File::BINARY) do |f|
|
open(t.path, 'r', flags: File::BINARY) do |f|
|
||||||
assert_equal true, f.binmode
|
assert_equal true, f.binmode?
|
||||||
end
|
end
|
||||||
open(t.path, mode: 'r', flags: File::BINARY) do |f|
|
open(t.path, mode: 'r', flags: File::BINARY) do |f|
|
||||||
assert_equal true, f.binmode
|
assert_equal true, f.binmode?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end if File::BINARY != 0
|
end if File::BINARY != 0
|
||||||
|
|
Loading…
Reference in a new issue