Sha256: b45a3cc82ff48a76d517c6a85db1d03c3eb66ee18af6b8a31ae8814ae215f293
Contents?: true
Size: 470 Bytes
Versions: 14
Compression:
Stored size: 470 Bytes
Contents
require_relative '../../test_helper' class MachineWithStatesWithCustomHumanNamesTest < StateMachinesTest def setup @klass = Class.new @machine = StateMachines::Machine.new(@klass) @state = @machine.state :parked, human_name: 'stopped' end def test_should_use_custom_human_name assert_equal 'stopped', @state.human_name end def test_should_allow_human_state_name_lookup assert_equal 'stopped', @klass.human_state_name(:parked) end end
Version data entries
14 entries across 14 versions & 2 rubygems