mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
refactor load error rescue to the openssl util file
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
864f60b837
commit
e1e671d60d
5 changed files with 9 additions and 23 deletions
|
@ -1,9 +1,4 @@
|
|||
begin
|
||||
require "openssl"
|
||||
require_relative 'utils'
|
||||
rescue LoadError
|
||||
end
|
||||
require 'test/unit'
|
||||
require_relative 'utils'
|
||||
|
||||
class OpenSSL::TestASN1 < Test::Unit::TestCase
|
||||
def test_decode
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
begin
|
||||
require "openssl"
|
||||
rescue LoadError
|
||||
end
|
||||
require_relative 'utils'
|
||||
require "digest/md5"
|
||||
require "test/unit"
|
||||
|
||||
if defined?(OpenSSL)
|
||||
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
begin
|
||||
require "openssl"
|
||||
rescue LoadError
|
||||
end
|
||||
require "test/unit"
|
||||
require_relative 'utils'
|
||||
|
||||
if defined?(OpenSSL)
|
||||
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
begin
|
||||
require "openssl"
|
||||
rescue LoadError
|
||||
end
|
||||
require 'test/unit'
|
||||
require_relative 'utils'
|
||||
|
||||
if defined?(OpenSSL)
|
||||
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
require "openssl"
|
||||
begin
|
||||
require "openssl"
|
||||
rescue LoadError
|
||||
end
|
||||
require "test/unit"
|
||||
|
||||
module OpenSSL::TestUtils
|
||||
|
@ -141,4 +144,4 @@ Q1VB8qkJN7rA7/2HrCR3gTsWNb1YhAsnFsoeRscC+LxXoXi9OAIUBG98h4tilg6S
|
|||
$VERBOSE = back
|
||||
end
|
||||
end
|
||||
end
|
||||
end if defined?(OpenSSL)
|
||||
|
|
Loading…
Reference in a new issue