diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_io.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index 2b4ad8a669..2983826e9d 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -3238,16 +3238,16 @@ End end end - def test_open_flag_binar + def test_open_flag_binary make_tempfile do |t| open(t.path, File::RDONLY, flags: File::BINARY) do |f| - assert_equal true, f.binmode + assert_equal true, f.binmode? end open(t.path, 'r', flags: File::BINARY) do |f| - assert_equal true, f.binmode + assert_equal true, f.binmode? end open(t.path, mode: 'r', flags: File::BINARY) do |f| - assert_equal true, f.binmode + assert_equal true, f.binmode? end end end if File::BINARY != 0 |