[rubygems/rubygems] Use assert_raise instead of assert_raises

For ruby-core compat

https://github.com/rubygems/rubygems/commit/83aa7b794e
This commit is contained in:
Samuel Giddins 2023-08-17 15:47:46 -07:00 committed by git
parent 1935433f5f
commit b68be40e24

View File

@ -1103,9 +1103,9 @@ dependencies: []
s.instance_variable_set :@version, v s.instance_variable_set :@version, v
end) end)
assert_raises(ArgumentError) { Marshal.load(data) } assert_raise(ArgumentError) { Marshal.load(data) }
out, err = capture_output do out, err = capture_output do
assert_raises(ArgumentError) { Marshal.load(data) } assert_raise(ArgumentError) { Marshal.load(data) }
end end
assert_empty out assert_empty out
assert_empty err assert_empty err