aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_io.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-29 05:32:38 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-29 05:32:38 +0000
commit8e613749f45fb2c471690847b21c2f7122ca148c (patch)
treeda4fd8799bbdaf6ffda26a657e23e718abe5e188 /test/ruby/test_io.rb
parent4de35bafbcf5b2229fdc5903d61435bdbb0408c0 (diff)
downloadruby-8e613749f45fb2c471690847b21c2f7122ca148c.tar.gz
* 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
Diffstat (limited to 'test/ruby/test_io.rb')
-rw-r--r--test/ruby/test_io.rb8
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