diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:19:47 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:19:47 +0000 |
commit | e716a49dabe2c086a97e2d8b3cffe5cf369ad026 (patch) | |
tree | e7e98125f89941db4c9d0f48f2df9c410467a3d8 /t/test-custodian-util-ping.rb | |
parent | af2ee063abea8235a8cbd1448533e4f4fbc0d0af (diff) |
Removed spaces inside parenthesis.
Diffstat (limited to 't/test-custodian-util-ping.rb')
-rwxr-xr-x | t/test-custodian-util-ping.rb | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/t/test-custodian-util-ping.rb b/t/test-custodian-util-ping.rb index e01ef8d..8de1cd5 100755 --- a/t/test-custodian-util-ping.rb +++ b/t/test-custodian-util-ping.rb @@ -41,7 +41,7 @@ class TestPingUtil < Test::Unit::TestCase # A hostname must be supplied # assert_raise ArgumentError do - Custodian::Util::Ping.new( nil ) + Custodian::Util::Ping.new(nil) end @@ -49,10 +49,10 @@ class TestPingUtil < Test::Unit::TestCase # A hostname is a string, not an array, hash, or similar. # assert_raise ArgumentError do - Custodian::Util::Ping.new( {}) + Custodian::Util::Ping.new({}) end assert_raise ArgumentError do - Custodian::Util::Ping.new( []) + Custodian::Util::Ping.new([]) end @@ -64,9 +64,9 @@ class TestPingUtil < Test::Unit::TestCase # def test_lookup_ipv4 - helper = Custodian::Util::Ping.new( 'ipv4.steve.org.uk' ) - assert( helper.is_ipv4? ) - assert( ! helper.is_ipv6? ) + helper = Custodian::Util::Ping.new('ipv4.steve.org.uk') + assert(helper.is_ipv4?) + assert(! helper.is_ipv6?) end @@ -76,9 +76,9 @@ class TestPingUtil < Test::Unit::TestCase # def test_lookup_ipv6 - helper = Custodian::Util::Ping.new( 'ipv6.steve.org.uk' ) - assert( helper.is_ipv6? ) - assert( ! helper.is_ipv4? ) + helper = Custodian::Util::Ping.new('ipv6.steve.org.uk') + assert(helper.is_ipv6?) + assert(! helper.is_ipv4?) end @@ -88,10 +88,10 @@ class TestPingUtil < Test::Unit::TestCase def test_lookup_fail %w( tessf.dfsdf.sdf.sdfsdf fdsfkljflj3.fdsfds.f3.dfs ).each do |name| assert_nothing_raised do - helper = Custodian::Util::Ping.new( name ) + helper = Custodian::Util::Ping.new(name) - assert( ! helper.is_ipv4? ) - assert( ! helper.is_ipv6? ) + assert(! helper.is_ipv4?) + assert(! helper.is_ipv6?) end end |