diff options
author | Steve Kemp <steve@steve.org.uk> | 2012-11-22 11:17:25 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2012-11-22 11:17:25 +0000 |
commit | a4b43890ab4ff396abcdbdc10e037649dae2a82f (patch) | |
tree | c4da3efe7f63ad924dba4cf7eef653c23a37fb5f | |
parent | c68df7d3d06db5455222a16d2e87cd9b11225630 (diff) |
Updated test-case to cope with the changed name of the ping-tool class.
-rwxr-xr-x | t/test-multi-ping.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/t/test-multi-ping.rb b/t/test-multi-ping.rb index d55c5e0..c7f65cf 100755 --- a/t/test-multi-ping.rb +++ b/t/test-multi-ping.rb @@ -3,7 +3,7 @@ require 'test/unit' -require 'custodian/multiping' +require 'custodian/util/ping' @@ -35,14 +35,14 @@ class TestMultiPing < Test::Unit::TestCase # Calling without a hostname is a mistake. # assert_raise ArgumentError do - obj = MultiPing.new() + obj = Custodian::Util::Ping.new() end # # Calling with a hostname should be fine mistake. # assert_nothing_raised do - obj = MultiPing.new( "some.host.anme" ) + obj = Custodian::Util::Ping.new( "some.host.anme" ) end end @@ -66,7 +66,7 @@ class TestMultiPing < Test::Unit::TestCase to_test.each do |name,version| - a = MultiPing.new( name ) + a = Custodian::Util::Ping.new( name ) if ( version == 6 ) assert_equal( a.is_ipv6?, true, "#{name} is IPv6" ) @@ -88,7 +88,7 @@ class TestMultiPing < Test::Unit::TestCase def test_bogus %w( tessf.dfsdf.sdf.sdfsdf fdsfkljflj3.fdsfds.f3.dfs ).each do |name| - helper = MultiPing.new( name ) + helper = Custodian::Util::Ping.new( name ) assert( ! helper.is_ipv4? ) assert( ! helper.is_ipv6? ) |