Permalink
Browse files

Added a test for success for icmp pings.

  • Loading branch information...
1 parent 7c88812 commit c6645247eeadc4b795d06307a91e50b2636cd1a0 @djberg96 committed Feb 25, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 test/test_net_ping_icmp.rb
@@ -50,6 +50,10 @@ def test_ping_returns_boolean
assert_boolean(@icmp.pingecho(@host))
end
+ def test_ping_expected_success
+ assert_true(Ping::ICMP.new(@host).ping?)
+ end
+
def test_ping_expected_failure
assert_false(Ping::ICMP.new('bogus').ping?)
assert_false(Ping::ICMP.new('http://www.asdfhjklasdfhlkj.com').ping?)

0 comments on commit c664524

Please sign in to comment.