Sha256: b39ecf5292b24bd36485980de605ee344733d8e451f84141964ba5f7c6c5c3cf
Contents?: true
Size: 377 Bytes
Versions: 14
Compression:
Stored size: 377 Bytes
Contents
require_relative '../../test_helper' class MachineWithInitializeAndSuperTest < StateMachinesTest def setup @klass = Class.new do def initialize super() end end @machine = StateMachines::Machine.new(@klass, initial: :parked) @object = @klass.new end def test_should_initialize_state assert_equal 'parked', @object.state end end
Version data entries
14 entries across 14 versions & 2 rubygems