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:
parent
7e68762446
commit
d281347abb
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue