summaryrefslogtreecommitdiff
path: root/test/openssl
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-07-18 10:42:40 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-07-18 10:42:40 +0000
commit4db96fe42cbf48449ad9528624d5760d65f3e818 (patch)
tree9be390f1bcafd57d1bda5dcda4e83fab21a07412 /test/openssl
parent0ff013398483fbb9507a661d02b9c5b64d9ed73c (diff)
* test/openssl/test_config.rb: remove temporally files early.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/openssl')
-rw-r--r--test/openssl/test_config.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/openssl/test_config.rb b/test/openssl/test_config.rb
index 77f89b2bd6..2e29883c00 100644
--- a/test/openssl/test_config.rb
+++ b/test/openssl/test_config.rb
@@ -12,9 +12,14 @@ dir = ./demoCA
certs = ./certs
__EOD__
file.close
+ @tmpfile = file
@it = OpenSSL::Config.new(file.path)
end
+ def teardown
+ @tmpfile.unlink
+ end
+
def test_constants
assert(defined?(OpenSSL::Config::DEFAULT_CONFIG_FILE))
assert_nothing_raised do
@@ -119,6 +124,8 @@ __EOC__
c = OpenSSL::Config.load(file.path)
assert_equal("[ default ]\n\n", c.to_s)
assert_equal(['default'], c.sections)
+ ensure
+ file.unlink if file
end
def test_initialize
@@ -133,6 +140,8 @@ __EOC__
c = OpenSSL::Config.new(file.path)
assert_equal("[ default ]\n\n", c.to_s)
assert_equal(['default'], c.sections)
+ ensure
+ file.unlink if file
end
def test_initialize_with_example_file