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

Version Path
state_machines-0.5.0 test/unit/machine/machine_with_initialize_and_super_test.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/state_machines-0.2.2/test/unit/machine/machine_with_initialize_and_super_test.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/state_machines-0.2.2/test/unit/machine/machine_with_initialize_and_super_test.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/state_machines-0.2.2/test/unit/machine/machine_with_initialize_and_super_test.rb
state_machines-0.4.0 test/unit/machine/machine_with_initialize_and_super_test.rb
state_machines-0.3.0 test/unit/machine/machine_with_initialize_and_super_test.rb
state_machines-0.2.2 test/unit/machine/machine_with_initialize_and_super_test.rb
state_machines-0.2.1 test/unit/machine/machine_with_initialize_and_super_test.rb
state_machines-0.2.0 test/unit/machine/machine_with_initialize_and_super_test.rb
state_machines-0.1.4 test/unit/machine/machine_with_initialize_and_super_test.rb
state_machines-0.1.3 test/unit/machine/machine_with_initialize_and_super_test.rb
state_machines-0.1.2 test/unit/machine/machine_with_initialize_and_super_test.rb
state_machines-0.1.1 test/unit/machine/machine_with_initialize_and_super_test.rb
state_machines-0.1.0 test/unit/machine/machine_with_initialize_and_super_test.rb