diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-19 07:45:58 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-19 07:45:58 +0000 |
commit | 4e316341843fe57dddf267fee753ee430ff39508 (patch) | |
tree | 5a751c1b132d593c10fc74b657471364136a35f1 /test/io | |
parent | c0051abc933eef3d10c553e13f4eb71f2ae8e416 (diff) | |
download | ruby-4e316341843fe57dddf267fee753ee430ff39508.tar.gz |
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')
-rw-r--r-- | test/io/wait/test_io_wait.rb | 6 |
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 7b9edea587..6c6fd83116 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 |