aboutsummaryrefslogtreecommitdiffstats
path: root/test/zlib/test_zlib.rb
blob: b148553be6ff4896b7aae230624b05d70701fa59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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