Navigation Menu

Skip to content

Commit

Permalink
assert_raise takes a list of exception types now.
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Oct 31, 2014
1 parent 6406834 commit 9dcc637
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/jruby/test_zlib.rb
Expand Up @@ -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
Expand Down

0 comments on commit 9dcc637

Please sign in to comment.