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 | 891b720013f06f092f6be82adad95e5551c696b6 (patch) | |
tree | bffba558147d68d951f403caa2b6396e4faf5f29 /t/test-custodian-settings.rb | |
parent | 3a96cc957dbd97c6ffeaea42f738e7c35b4acbc7 (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 ) |