Sha256: 82f11f461b9097887a0a422a7e0741ac13655f2cb7dad05d53d7afd8e18247eb
Contents?: true
Size: 457 Bytes
Versions: 14
Compression:
Stored size: 457 Bytes
Contents
require_relative '../../test_helper' class MachineFinderCustomOptionsTest < StateMachinesTest def setup @klass = Class.new @machine = StateMachines::Machine.find_or_create(@klass, :status, initial: :parked) @object = @klass.new end def test_should_use_custom_attribute assert_equal :status, @machine.attribute end def test_should_set_custom_initial_state assert_equal :parked, @machine.initial_state(@object).name end end
Version data entries
14 entries across 14 versions & 2 rubygems