diff options
author | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-11 01:25:25 +0000 |
---|---|---|
committer | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-11 01:25:25 +0000 |
commit | e1e671d60dd5015993220b64593e0ee3f87addae (patch) | |
tree | 41bc69c8ce20c5bd322ba3efe8f3d717b3fb5b83 /test/openssl/utils.rb | |
parent | 864f60b8375eb0446ea1184f314d3bcac6fb7b87 (diff) | |
download | ruby-e1e671d60dd5015993220b64593e0ee3f87addae.tar.gz |
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
Diffstat (limited to 'test/openssl/utils.rb')
-rw-r--r-- | test/openssl/utils.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/openssl/utils.rb b/test/openssl/utils.rb index c116bf9e3e..92c6c5596e 100644 --- a/test/openssl/utils.rb +++ b/test/openssl/utils.rb @@ -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) |