# frozen_string_literal: true

require 'test_helper'

class MachineWithHelpersTest < StateMachinesTest
  def setup
    @klass = Class.new
    @machine = StateMachines::Machine.new(@klass)
    @object = @klass.new
  end

  def test_should_throw_exception_with_invalid_scope
    assert_raises(KeyError) { @machine.define_helper(:invalid, :park) {} }
  end
end
