diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-15 02:20:37 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-15 02:20:37 +0000 |
commit | fc233f516c53af069c90ce3434171fa7dc946e4e (patch) | |
tree | 4cb88a6485e14f10987fdf7cd8d3f6d8edcc6067 | |
parent | eb36519b964f4a9bac8f185ae7edb99b708b6fc8 (diff) | |
download | ruby-fc233f516c53af069c90ce3434171fa7dc946e4e.tar.gz |
* test/zlib/test_zlib.rb (test_to_io): forgotten to fix with r30201.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | test/zlib/test_zlib.rb | 5 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,7 @@ +Wed Dec 15 11:19:33 2010 NAKAMURA Usaku <usa@ruby-lang.org> + + * test/zlib/test_zlib.rb (test_to_io): forgotten to fix with r30201. + Wed Dec 15 11:07:34 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> * io.c (simple_sendfile): enable on Mac OS X. diff --git a/test/zlib/test_zlib.rb b/test/zlib/test_zlib.rb index bff616a235..56940ace8c 100644 --- a/test/zlib/test_zlib.rb +++ b/test/zlib/test_zlib.rb @@ -237,8 +237,9 @@ if defined? Zlib t.close Zlib::GzipWriter.open(t.path) {|gz| gz.print("foo") } - f = Zlib::GzipReader.open(t.path) - assert_kind_of(IO, f.to_io) + Zlib::GzipReader.open(t.path) do |f| + assert_kind_of(IO, f.to_io) + end end def test_crc |