Sha256: 8dd85d66d7b8cc1d68bddaa8cc437b1b72ccf7b4173f4b97b9a0faf9d2c134c4

Contents?: true

Size: 454 Bytes

Versions: 1

Compression:

Stored size: 454 Bytes

Contents

require_relative "test_helper"

class TestMachine < Minitest::Unit::TestCase
  include Clusterfuck

  def setup
    @machine = Machine.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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-clusterfuck-0.0.1 test/machine_test.rb