Sha256: ba5df07ee12e8feb02f03a32e9a37c370561a7e98eefb268ad1b90ab14ce6e3a
Contents?: true
Size: 477 Bytes
Versions: 14
Compression:
Stored size: 477 Bytes
Contents
require_relative '../../test_helper' class StateCollectionByDefaultTest < StateMachinesTest def setup @machine = StateMachines::Machine.new(Class.new) @states = StateMachines::StateCollection.new(@machine) end def test_should_not_have_any_nodes assert_equal 0, @states.length end def test_should_have_a_machine assert_equal @machine, @states.machine end def test_should_be_empty_by_priority assert_equal [], @states.by_priority end end
Version data entries
14 entries across 14 versions & 2 rubygems