mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
17 lines
331 B
Ruby
17 lines
331 B
Ruby
|
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
|