diff options
author | Steve Kemp <steve@steve.org.uk> | 2012-11-23 13:51:20 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2012-11-23 13:51:20 +0000 |
commit | b9100d528bc345e473bc1668e20dbd75f8b2e11b (patch) | |
tree | 599ba15581ac4410fa406f21ceba66813fe8e8b1 /t/test-custodian-util-ping.rb | |
parent | 8d14be91ea7fa37be8153f8250a79fd281d5aa21 (diff) |
Updated.
Diffstat (limited to 't/test-custodian-util-ping.rb')
-rwxr-xr-x | t/test-custodian-util-ping.rb | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/t/test-custodian-util-ping.rb b/t/test-custodian-util-ping.rb index 2659b5b..cec3ba9 100755 --- a/t/test-custodian-util-ping.rb +++ b/t/test-custodian-util-ping.rb @@ -90,9 +90,15 @@ class TestPingUtil < Test::Unit::TestCase # Test lookup of hosts that don't work # def test_lookup_fail - helper = Custodian::Util::Ping.new( "steve.steve.steve" ); - assert( ! helper.is_ipv6? ) - assert( ! helper.is_ipv4? ) + %w( tessf.dfsdf.sdf.sdfsdf fdsfkljflj3.fdsfds.f3.dfs ).each do |name| + assert_nothing_raised do + helper = Custodian::Util::Ping.new( name ) + + assert( ! helper.is_ipv4? ) + assert( ! helper.is_ipv6? ) + end + end + end |