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 | 7809642d654b05f90e2b3488f907151098d4ac10 (patch) | |
| tree | c4da3efe7f63ad924dba4cf7eef653c23a37fb5f /t | |
| parent | 143795e96f1becfc70d4b23f5ad31968f2c8d89d (diff) | |
  Updated test-case to cope with the changed name of the ping-tool class.
Diffstat (limited to 't')
| -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? ) | 
