diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-04-05 13:27:45 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-04-05 13:27:45 +0000 |
commit | 2f8c9ce629bff3ada0b367d1e4cd4c12f5bd7198 (patch) | |
tree | 0f3eb9d76abdf25f9a2339a05f7b4df6113f6cf0 /test/zlib/test_zlib.rb | |
parent | e5af80c69779c10e237a20d1b04daf2453d5dc0c (diff) | |
download | ruby-2f8c9ce629bff3ada0b367d1e4cd4c12f5bd7198.tar.gz |
* test/zlib/test_zlib.rb: new file.
(TestZlibGzipWriter#test_new_nil): test for [ruby-dev:23228].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/zlib/test_zlib.rb')
-rw-r--r-- | test/zlib/test_zlib.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/zlib/test_zlib.rb b/test/zlib/test_zlib.rb new file mode 100644 index 0000000000..b148553be6 --- /dev/null +++ b/test/zlib/test_zlib.rb @@ -0,0 +1,16 @@ +require 'test/unit/testsuite' +require 'test/unit/testcase' + +require 'zlib' + +class TestZlibGzipWriter < Test::Unit::TestCase + def test_new_nil # [ruby-dev:23228] + old = $VERBOSE + $VERBOSE = nil + begin + assert_raises(NoMethodError) { Zlib::GzipWriter.new(nil).close } + ensure + $VERBOSE = old + end + end +end |