Issue #5984 has been reported by Benoit Daloze.

----------------------------------------
Bug #5984: Pathname binread test is testing read
https://bugs.ruby-lang.org/issues/5984

Author: Benoit Daloze
Status: Open
Priority: Normal
Assignee: 
Category: lib
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-01-12 trunk 34279) [x86_64-darwin10.8.0] 


Hello,

I noticed the 'binread' test in test/pathname/test_pathname.rb calls read instead of binread:

diff --git a/test/pathname/test_pathname.rb b/test/pathname/test_pathname.rb
index dcbcd49..1631403 100644
--- a/test/pathname/test_pathname.rb
+++ b/test/pathname/test_pathname.rb
@@ -710,7 +710,7 @@ class TestPathname < Test::Unit::TestCase
   def test_binread
     with_tmpchdir('rubytest-pathname') {|dir|
       open("a", "w") {|f| f.write "abc" }
-      assert_equal("abc", Pathname("a").read)
+      assert_equal("abc", Pathname("a").binread)
     }
   end
 



-- 
http://bugs.ruby-lang.org/