1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/io-wait] Fix usage of assert_raises -> assert_raise. (https://github.com/ruby/io-wait/pull/20)

https://github.com/ruby/io-wait/commit/c5c6abbb5c
This commit is contained in:
Samuel Williams 2022-06-25 20:12:21 +12:00 committed by git
parent 7e68762446
commit d281347abb

View file

@ -177,14 +177,14 @@ class TestIOWait < Test::Unit::TestCase
def test_wait_mask_zero
omit("Missing IO::WRITABLE!") unless IO.const_defined?(:WRITABLE)
assert_raises(ArgumentError) do
assert_raise(ArgumentError) do
@w.wait(0, 0)
end
end
def test_wait_mask_negative
omit("Missing IO::WRITABLE!") unless IO.const_defined?(:WRITABLE)
assert_raises(ArgumentError) do
assert_raise(ArgumentError) do
@w.wait(-6, 0)
end
end