mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/pathname/test_pathname.rb: not read but binread.
patched by Benoit Daloze, [ruby-core:42440] [Bug #5984] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7fa3f1c5a9
commit
7bde0843a2
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Feb 9 04:12:29 2012 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* test/pathname/test_pathname.rb: not read but binread.
|
||||
patched by Benoit Daloze, [ruby-core:42440] [Bug #5984]
|
||||
|
||||
Wed Feb 8 22:29:59 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* string.c (rb_str_modify_expand): fix memory leak.
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue