summaryrefslogtreecommitdiff
path: root/test/io/wait/test_io_wait.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-19 07:45:58 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-19 07:45:58 +0000
commit311b7154839b91c87ee40908ac6d3f5c330d7b11 (patch)
tree5a751c1b132d593c10fc74b657471364136a35f1 /test/io/wait/test_io_wait.rb
parent6286ff6301f94a475702d905cb722d3a4c7c4535 (diff)
test: use assert_not_*
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/io/wait/test_io_wait.rb')
-rw-r--r--test/io/wait/test_io_wait.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/io/wait/test_io_wait.rb b/test/io/wait/test_io_wait.rb
index 7b9edea5871..6c6fd83116e 100644
--- a/test/io/wait/test_io_wait.rb
+++ b/test/io/wait/test_io_wait.rb
@@ -37,16 +37,16 @@ class TestIOWait < Test::Unit::TestCase
end
def test_ready?
- refute @r.ready?, "shouldn't ready, but ready"
+ assert_not_predicate @r, :ready?, "shouldn't ready, but ready"
@w.syswrite "."
sleep 0.1
- assert @r.ready?, "should ready, but not"
+ assert_predicate @r, :ready?, "should ready, but not"
end
def test_buffered_ready?
@w.syswrite ".\n!"
assert_equal ".\n", @r.gets
- assert @r.ready?
+ assert_predicate @r, :ready?
end
def test_wait