Sha256: b809bb024d0cad7ac5951ecac68f7e16f07c9e543586c5c7f0b0d71c4176cbf5
Contents?: true
Size: 529 Bytes
Versions: 14
Compression:
Stored size: 529 Bytes
Contents
require_relative '../../test_helper' class StateAfterBeingCopiedTest < StateMachinesTest def setup @machine = StateMachines::Machine.new(Class.new) @machine.states << @state = StateMachines::State.new(@machine, :parked) @copied_state = @state.dup end def test_should_not_have_the_context state_context = nil @state.context { state_context = self } copied_state_context = nil @copied_state.context { copied_state_context = self } refute_same state_context, copied_state_context end end
Version data entries
14 entries across 14 versions & 2 rubygems