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:
parent
b6000cffaa
commit
d45584e716
1 changed files with 10 additions and 8 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue