* 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
This commit is contained in:
parent
0ff0133984
commit
4db96fe42c
@ -1,3 +1,7 @@
|
||||
Wed Jul 18 19:41:19 2012 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* test/openssl/test_config.rb: remove temporally files early.
|
||||
|
||||
Wed Jul 18 17:45:26 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* error.c (rb_builtin_type_name): map by index.
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user