summaryrefslogtreecommitdiff
path: root/test/openssl/test_ns_spki.rb
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-15 19:50:00 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-15 19:50:00 +0000
commit033cea7d8e36f388f8d9cea01283932fae32f79e (patch)
tree8d58080450795ed9db6c3929ccf132b333e594d3 /test/openssl/test_ns_spki.rb
parent1c932619833f3056a969740248eb313e77b20c9f (diff)
drying up the requires in the openssl tests
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/openssl/test_ns_spki.rb')
-rw-r--r--test/openssl/test_ns_spki.rb11
1 files changed, 1 insertions, 10 deletions
diff --git a/test/openssl/test_ns_spki.rb b/test/openssl/test_ns_spki.rb
index 14895edb7d2..3bcf3e6fbeb 100644
--- a/test/openssl/test_ns_spki.rb
+++ b/test/openssl/test_ns_spki.rb
@@ -1,13 +1,7 @@
-begin
- require "openssl"
- require_relative 'utils'
-rescue LoadError
-end
-require "test/unit"
+require_relative 'utils'
if defined?(OpenSSL)
-
class OpenSSL::TestNSSPI < Test::Unit::TestCase
def setup
# This request data is adopt from the specification of
@@ -20,9 +14,6 @@ class OpenSSL::TestNSSPI < Test::Unit::TestCase
@b64 << "i0//rgBvmco="
end
- def teardown
- end
-
def test_build_data
key1 = OpenSSL::TestUtils::TEST_KEY_RSA1024
key2 = OpenSSL::TestUtils::TEST_KEY_RSA2048