diff options
Diffstat (limited to 't/test-custodian-settings.rb')
-rwxr-xr-x | t/test-custodian-settings.rb | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/t/test-custodian-settings.rb b/t/test-custodian-settings.rb index 74f881b..1630859 100755 --- a/t/test-custodian-settings.rb +++ b/t/test-custodian-settings.rb @@ -47,36 +47,37 @@ class TestConfigurationSingleton < Test::Unit::TestCase # retry delay - probably unset. a = settings.retry_delay - assert(a.class == Fixnum) + assert(a.class == Integer || + a.class == Fixnum) # store a number settings._store('retry_delay', 5) a = settings.retry_delay - assert(a.class == Fixnum) + assert(a.class == Integer || a.class == Fixnum ) assert(a == 5) # store a string settings._store('retry_delay', '35') a = settings.retry_delay - assert(a.class == Fixnum) + assert(a.class == Integer || a.class == Fixnum ) assert(a == 35) # timeout - probably unset. a = settings.timeout - assert(a.class == Fixnum) + assert(a.class == Integer || a.class == Fixnum ) # store a number settings._store('timeout', 5) a = settings.timeout - assert(a.class == Fixnum) + assert(a.class == Integer || a.class == Fixnum ) assert(a == 5) # store a string settings._store('timeout', '35') a = settings.timeout - assert(a.class == Fixnum) + assert(a.class == Integer || a.class == Fixnum ) assert(a == 35) |