Skip to content

Commit 9b4f761

Browse files
committed
test/openssl/test_ssl: use assert_raise in test_bad_socket
The Ruby tree disallows assert_raises.
1 parent c2cc78a commit 9b4f761

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/openssl/test_ssl.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
class OpenSSL::TestSSL < OpenSSL::SSLTestCase
77
def test_bad_socket
88
bad_socket = Struct.new(:sync).new
9-
assert_raises TypeError do
9+
assert_raise TypeError do
1010
socket = OpenSSL::SSL::SSLSocket.new bad_socket
1111
# if the socket is not a T_FILE, `connect` will segv because it tries
1212
# to get the underlying file descriptor but the API it calls assumes

0 commit comments

Comments
 (0)