From 9b4f761e74a6f718d982d34d0bc45fa859fc264d Mon Sep 17 00:00:00 2001 From: Kazuki Yamaguchi Date: Sat, 23 Oct 2021 13:35:04 +0900 Subject: [PATCH] test/openssl/test_ssl: use assert_raise in test_bad_socket The Ruby tree disallows assert_raises. --- test/openssl/test_ssl.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/openssl/test_ssl.rb b/test/openssl/test_ssl.rb index 15e8d7e3f..65dbe7ac2 100644 --- a/test/openssl/test_ssl.rb +++ b/test/openssl/test_ssl.rb @@ -6,7 +6,7 @@ class OpenSSL::TestSSL < OpenSSL::SSLTestCase def test_bad_socket bad_socket = Struct.new(:sync).new - assert_raises TypeError do + assert_raise TypeError do socket = OpenSSL::SSL::SSLSocket.new bad_socket # if the socket is not a T_FILE, `connect` will segv because it tries # to get the underlying file descriptor but the API it calls assumes