diff options
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 |