[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:
parent
7e68762446
commit
d281347abb
@ -177,14 +177,14 @@ class TestIOWait < Test::Unit::TestCase
|
|||||||
|
|
||||||
def test_wait_mask_zero
|
def test_wait_mask_zero
|
||||||
omit("Missing IO::WRITABLE!") unless IO.const_defined?(:WRITABLE)
|
omit("Missing IO::WRITABLE!") unless IO.const_defined?(:WRITABLE)
|
||||||
assert_raises(ArgumentError) do
|
assert_raise(ArgumentError) do
|
||||||
@w.wait(0, 0)
|
@w.wait(0, 0)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_wait_mask_negative
|
def test_wait_mask_negative
|
||||||
omit("Missing IO::WRITABLE!") unless IO.const_defined?(:WRITABLE)
|
omit("Missing IO::WRITABLE!") unless IO.const_defined?(:WRITABLE)
|
||||||
assert_raises(ArgumentError) do
|
assert_raise(ArgumentError) do
|
||||||
@w.wait(-6, 0)
|
@w.wait(-6, 0)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user