blob: a39b545229c28a3be17ae1aafae975f7f52b7193 (
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
39
40
41
|
#!/usr/bin/ruby1.8 -I./lib/ -I../lib/
require 'custodian/settings'
require 'test/unit'
#
# Unit test for our configuration file reader.
#
#
class TestConfigurationSingleton < Test::Unit::TestCase
#
# Create the test suite environment: NOP.
#
def setup
end
#
# Destroy the test suite environment: NOP.
#
def teardown
end
#
# Test that we're genuinely a singleton
#
def test_singleton
a = Custodian::Settings.instance()
b = Custodian::Settings.instance()
assert( a )
assert( b )
assert_equal( a.object_id, b.object_id )
end
end
|