aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_buffering.rb
diff options
context:
space:
mode:
authornobu <nobu@ruby-lang.org>2016-02-19 07:45:58 +0000
committerKazuki Yamaguchi <k@rhe.jp>2016-05-31 11:31:27 +0900
commitb9030f08f9d7eb081cf28a58e252ae61cf3590e4 (patch)
tree47f617504670b3a2a7f7074dc3a32d66d51f61a8 /test/test_buffering.rb
parentf51e2f6539558c735493491e14bba670afd7517f (diff)
downloadruby-openssl-b9030f08f9d7eb081cf28a58e252ae61cf3590e4.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/test_buffering.rb')
-rw-r--r--test/test_buffering.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_buffering.rb b/test/test_buffering.rb
index fe07b46a..1f552c93 100644
--- a/test/test_buffering.rb
+++ b/test/test_buffering.rb
@@ -43,19 +43,19 @@ class OpenSSL::TestBuffering < Test::Unit::TestCase
def test_flush
@io.write 'a'
- refute @io.sync
+ assert_not_predicate @io, :sync
assert_empty @io.string
assert_equal @io, @io.flush
- refute @io.sync
+ assert_not_predicate @io, :sync
assert_equal 'a', @io.string
end
def test_flush_error
@io.write 'a'
- refute @io.sync
+ assert_not_predicate @io, :sync
assert_empty @io.string
def @io.syswrite *a
@@ -66,7 +66,7 @@ class OpenSSL::TestBuffering < Test::Unit::TestCase
@io.flush
end
- refute @io.sync, 'sync must not change'
+ assert_not_predicate @io, :sync, 'sync must not change'
end
def test_getc