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 /test/zlib | |
parent | eb36519b964f4a9bac8f185ae7edb99b708b6fc8 (diff) |
* 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
Diffstat (limited to 'test/zlib')
-rw-r--r-- | test/zlib/test_zlib.rb | 5 |
1 files changed, 3 insertions, 2 deletions
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 |