require_relative "test_helper" class TestMachine < Minitest::Unit::TestCase include Clusterfuck def setup @machine = Machine.new(:test) @cluster = Cluster.new(:test) end def test_get_name assert_equal :test, @machine.name end def test_assign_ssh_port assert_kind_of Fixnum, @machine.ssh_port end def test_assign_successive_ssh_ports first = @machine.ssh_port second = Machine.new(:test2) assert_equal first + 1, second.ssh_port end end