Sha256: 92faa230493a6fbf5cebcebb95dc0a66af88480885cebc6f27202fd86e58c50a

Contents?: true

Size: 310 Bytes

Versions: 35

Compression:

Stored size: 310 Bytes

Contents

require_relative 'test_helper'

class MachineWithStatesTest < BaseTestCase
  def setup
    @model = new_model
    @machine = StateMachines::Machine.new(@model)
    @machine.state :first_gear
  end

  def test_should_humanize_name
    assert_equal 'first gear', @machine.state(:first_gear).human_name
  end
end

Version data entries

35 entries across 32 versions & 3 rubygems

Version Path
solidus_backend-1.0.0.pre3 vendor/bundle/gems/state_machines-activemodel-0.1.2/test/machine_with_states_test.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/state_machines-activemodel-0.1.2/test/machine_with_states_test.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/state_machines-activerecord-0.2.0/test/machine_with_states_test.rb
state_machines-activerecord-0.3.0 test/machine_with_states_test.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/state_machines-activemodel-0.1.2/test/machine_with_states_test.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/state_machines-activerecord-0.2.0/test/machine_with_states_test.rb
state_machines-activemodel-0.3.0 test/machine_with_states_test.rb
state_machines-activemodel-0.2.0 test/machine_with_states_test.rb
state_machines-activemodel-0.1.2 test/machine_with_states_test.rb
state_machines-activemodel-0.1.1 test/machine_with_states_test.rb
state_machines-activerecord-0.2.0 test/machine_with_states_test.rb
state_machines-activemodel-0.1.0 test/machine_with_states_test.rb
state_machines-activerecord-0.1.0 test/machine_with_states_test.rb
state_machines-activerecord-0.0.1 test/machine_with_states_test.rb
state_machines-activemodel-0.0.3 test/machine_with_states_test.rb