Skip to content
Permalink
Browse files
assert_raise takes a list of exception types now.
  • Loading branch information
headius committed Oct 31, 2014
1 parent 6406834 commit 9dcc637ffa22e39f418168eb16a4a72ed9fab5bb
Showing 1 changed file with 1 addition and 1 deletion.
@@ -791,7 +791,7 @@ def test_corrupted_header
gz.finish
# 14: magic(2) + method(1) + flag(1) + mtime(4) + exflag(1) + os(1) + orig_name(2) + comment(2)
1.upto(14) do |idx|
assert_raise(Zlib::BufError, idx) do
assert_raise(Zlib::BufError) do
z = Zlib::Inflate.new(Zlib::MAX_WBITS + 32)
p z.inflate(s[0, idx]) + z.finish
end

0 comments on commit 9dcc637

Please sign in to comment.