aboutsummaryrefslogtreecommitdiffstats
path: root/test
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
commit138801318f980eb5459e780e6a5b98a517037c5e (patch)
treeda4fd8799bbdaf6ffda26a657e23e718abe5e188 /test
parentdd2016298d030d60b0790ea1c2a16e9ab93ee847 (diff)
downloadruby-138801318f980eb5459e780e6a5b98a517037c5e.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')
-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