1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Wrap SSLv3 spec in version guard.

This commit is contained in:
Brian Shirai 2015-07-31 12:51:07 -07:00
parent b6000cffaa
commit d45584e716

View file

@ -98,15 +98,17 @@ class TestPumaServerSSL < Test::Unit::TestCase
assert_equal "https", body
end
def test_ssl_v3_rejection
@http.ssl_version='SSLv3'
assert_raises(OpenSSL::SSL::SSLError) do
@http.start do
Net::HTTP::Get.new '/'
unless RUBY_VERSION =~ /^1.8/
def test_ssl_v3_rejection
@http.ssl_version='SSLv3'
assert_raises(OpenSSL::SSL::SSLError) do
@http.start do
Net::HTTP::Get.new '/'
end
end
unless defined?(JRUBY_VERSION)
assert_match("wrong version number", @events.error.message) if @events.error
end
end
unless defined?(JRUBY_VERSION)
assert_match("wrong version number", @events.error.message) if @events.error
end
end