Sha256: 89a6ac36166490b7db359d530a481c6a3ccbe072eabc46e432a91b731121b30f

Contents?: true

Size: 370 Bytes

Versions: 14

Compression:

Stored size: 370 Bytes

Contents

require_relative '../../test_helper'

class EventWithHumanNameTest < StateMachinesTest
  def setup
    @klass = Class.new
    @machine = StateMachines::Machine.new(@klass)
    @machine.events << @event = StateMachines::Event.new(@machine, :ignite, human_name: 'start')
  end

  def test_should_use_custom_human_name
    assert_equal 'start', @event.human_name
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

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