diff options
Diffstat (limited to 'test/openssl')
-rw-r--r-- | test/openssl/test_buffering.rb | 8 | ||||
-rw-r--r-- | test/openssl/test_cipher.rb | 4 | ||||
-rw-r--r-- | test/openssl/test_ssl.rb | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/test/openssl/test_buffering.rb b/test/openssl/test_buffering.rb index fe07b46a5e..1f552c935b 100644 --- a/test/openssl/test_buffering.rb +++ b/test/openssl/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 diff --git a/test/openssl/test_cipher.rb b/test/openssl/test_cipher.rb index 89c176f4de..dae069e43c 100644 --- a/test/openssl/test_cipher.rb +++ b/test/openssl/test_cipher.rb @@ -143,9 +143,9 @@ class OpenSSL::TestCipher < Test::Unit::TestCase def test_authenticated cipher = OpenSSL::Cipher.new('aes-128-gcm') - assert(cipher.authenticated?) + assert_predicate(cipher, :authenticated?) cipher = OpenSSL::Cipher.new('aes-128-cbc') - refute(cipher.authenticated?) + assert_not_predicate(cipher, :authenticated?) end def test_aes_gcm diff --git a/test/openssl/test_ssl.rb b/test/openssl/test_ssl.rb index 58fcc0802a..0f740851b4 100644 --- a/test/openssl/test_ssl.rb +++ b/test/openssl/test_ssl.rb @@ -752,7 +752,7 @@ class OpenSSL::TestSSL < OpenSSL::SSLTestCase ctx3 = OpenSSL::SSL::SSLContext.new ctx3.ciphers = "DH" - refute_predicate ctx3, :frozen? + assert_not_predicate ctx3, :frozen? ctx2 = OpenSSL::SSL::SSLContext.new ctx2.ciphers = "DH" |