From 311b7154839b91c87ee40908ac6d3f5c330d7b11 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 19 Feb 2016 07:45:58 +0000 Subject: test: use assert_not_* git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/io/wait/test_io_wait.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/io/wait/test_io_wait.rb') 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 -- cgit v1.2.3