Project

General

Profile

This project is closed and read-only.

Actions

Backport #5984

closed

Pathname binread test is testing read

Backport #5984: Pathname binread test is testing read

Added by Eregon (Benoit Daloze) over 14 years ago. Updated over 14 years ago.

Status:
Closed
Assignee:
-
[ruby-core:42440]

Description

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
Actions

Also available in: PDF Atom