Sha256: b7dc0018a76aa25bb80368cf220c6632c56f2f0e3d20b8ea9794e495cb340c9d
Contents?: true
Size: 594 Bytes
Versions: 14
Compression:
Stored size: 594 Bytes
Contents
require_relative '../../test_helper' class TransitionWithoutReadingStateTest < StateMachinesTest def setup @klass = Class.new @machine = StateMachines::Machine.new(@klass) @machine.state :parked, :idling @machine.event :ignite @object = @klass.new @object.state = 'idling' @transition = StateMachines::Transition.new(@object, @machine, :ignite, :parked, :idling, false) end def test_should_not_read_from_value_from_object assert_equal 'parked', @transition.from end def test_should_have_to_value assert_equal 'idling', @transition.to end end
Version data entries
14 entries across 14 versions & 2 rubygems