diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:09:46 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:09:46 +0000 |
commit | edf0e675123e4869e2739d1bab0ed57b3b9f664c (patch) | |
tree | c0771fecb0734fb342cf16e352f19fd3ead9a112 /t/test-custodian-settings.rb | |
parent | 22b40326730fb7a4a8e2f5cb8d877f6a84494d02 (diff) |
Do not use parentheses for method calls with no arguments.
This is neater. Flagged by rubocop
Diffstat (limited to 't/test-custodian-settings.rb')
-rwxr-xr-x | t/test-custodian-settings.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/t/test-custodian-settings.rb b/t/test-custodian-settings.rb index 8dea986..0347e7c 100755 --- a/t/test-custodian-settings.rb +++ b/t/test-custodian-settings.rb @@ -29,8 +29,8 @@ class TestConfigurationSingleton < Test::Unit::TestCase # Test that we're genuinely a singleton # def test_singleton - a = Custodian::Settings.instance() - b = Custodian::Settings.instance() + a = Custodian::Settings.instance + b = Custodian::Settings.instance assert( a ) assert( b ) @@ -42,7 +42,7 @@ class TestConfigurationSingleton < Test::Unit::TestCase # Test that our settings are suitable types # def test_types - settings = Custodian::Settings.instance() + settings = Custodian::Settings.instance # retry delay - probably unset. @@ -64,18 +64,18 @@ class TestConfigurationSingleton < Test::Unit::TestCase # timeout - probably unset. - a = settings.timeout() + a = settings.timeout assert( a.class == Fixnum ) # store a number settings._store( "timeout", 5 ) - a = settings.timeout() + a = settings.timeout assert( a.class == Fixnum ) assert( a == 5 ) # store a string settings._store( "timeout", "35" ) - a = settings.timeout() + a = settings.timeout assert( a.class == Fixnum ) assert( a == 35 ) |