Sha256: 9c8df05832cf5c5022e0e3a527db54a96f62709d5043a11af3b5f4875acbdaf0

Contents?: true

Size: 374 Bytes

Versions: 14

Compression:

Stored size: 374 Bytes

Contents

require_relative '../../test_helper'

class StateWithHumanNameTest < StateMachinesTest
  def setup
    @klass = Class.new
    @machine = StateMachines::Machine.new(@klass)
    @machine.states << @state = StateMachines::State.new(@machine, :parked, human_name: 'stopped')
  end

  def test_should_use_custom_human_name
    assert_equal 'stopped', @state.human_name
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

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