Sha256: fe9637f88863c1faa74d24a003f75043752aef5157d9c8e03272bc3270b4c061
Contents?: true
Size: 723 Bytes
Versions: 7
Compression:
Stored size: 723 Bytes
Contents
require 'test/unit' require_relative '../lib/vagrant-subutai/packer/subutai_net' # Tests the subutai_net module class SubutaiNetTest < Test::Unit::TestCase # Called before every test method runs. Can be used # to set up fixture information. def setup # Do nothing end # Called after every test method runs. Can be used to tear # down fixture information. def teardown # Do nothing end def test_find_port raise "port was #{port}: should have been 2000 or greater" if \ find_port(2000) < 2000 end def test_find_mac find_mac(:virtualbox) end def test_failure assert_false(port_bound?('127.0.0.1', 1)) assert_raise do port_bound?('abc', 0) end end end
Version data entries
7 entries across 7 versions & 1 rubygems