# frozen_string_literal: true

require 'test_helper'

class TransitionWithDifferentStatesTest < StateMachinesTest
  def setup
    @klass = Class.new
    @machine = StateMachines::Machine.new(@klass)
    @machine.state :parked, :idling
    @machine.event :ignite

    @object = @klass.new
    @object.state = 'parked'
    @transition = StateMachines::Transition.new(@object, @machine, :ignite, :parked, :idling)
  end

  def test_should_not_be_loopback
    refute_predicate @transition, :loopback?
  end
end
