summaryrefslogtreecommitdiff
path: root/t/test-custodian-util-ping.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-03-09 13:19:47 +0000
committerSteve Kemp <steve@steve.org.uk>2015-03-09 13:19:47 +0000
commit54b21cf54c51dfe40784a8096f84c7a80b015bd4 (patch)
tree4763692624732650daf1a9e02c91576d3f7ee8d0 /t/test-custodian-util-ping.rb
parenta22b8e96ead33b0f97ed5243dbad7f7b6cd5135d (diff)
Removed spaces inside parenthesis.
Diffstat (limited to 't/test-custodian-util-ping.rb')
-rwxr-xr-xt/test-custodian-util-ping.rb24
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