blob: 0cb39d85e8e0118e2ec193dfdf088e6ac5252e00 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#!/usr/bin/env ruby
=begin
= $RCSfile$ -- TestCases for OpenSSL::Config
= Info
'OpenSSL for Ruby 2' project
Copyright (C) 2002 Michal Rokos <m.rokos@sh.cvut.cz>
All rights reserved.
= Licence
This program is licenced under the same licence as Ruby.
(See the file 'LICENCE'.)
= Version
$Id$
=end
require 'test/unit'
require 'openssl'
include OpenSSL
OpenSSL::debug = true
class TC_Config < Test::Unit::TestCase
def set_up
@c = Config::load()
end
def test_config
assert_instance_of(Hash, @c.section("CA_default"), "section")
assert_instance_of(String, @c.value(nil, "HOME"), "value")
assert_instance_of(String, @c.value("CA_default", "default_days"), "value")
end
def tear_down
@c = nil
end
end
|