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