Sha256: b5c18330bda24bcaa3bc104f682076f71951d601f75df0407255f47cc4b748b7

Contents?: true

Size: 436 Bytes

Versions: 1

Compression:

Stored size: 436 Bytes

Contents

#! /usr/bin/env ruby
# coding: utf-8

require "helper"

#describe Comana::HostInspector::Ping do
class TC_Ping < Test::Unit::TestCase
  def setup
    #context 'not exist or down' do
    @hi00 = Comana::HostInspector::Ping.new("")

    #context 'exist and alive' do
    @hi01 = Comana::HostInspector::Ping.new("localhost")
  end

  def test_alive?
    assert_equal(false , @hi00.alive?)
    assert_equal(true  , @hi01.alive?)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
comana-0.0.10 test/test_hostinspector_ping.rb