class EventAfterBeingCopiedTest

Public Instance Methods

setup() click to toggle source
# File test/unit/event_test.rb, line 416
def setup
  @machine = StateMachine::Machine.new(Class.new)
  @machine.events << @event = StateMachine::Event.new(@machine, :ignite)
  @copied_event = @event.dup
end
test_should_not_have_the_same_collection_of_branches() click to toggle source
# File test/unit/event_test.rb, line 422
def test_should_not_have_the_same_collection_of_branches
  assert_not_same @event.branches, @copied_event.branches
end
test_should_not_have_the_same_collection_of_known_states() click to toggle source
# File test/unit/event_test.rb, line 426
def test_should_not_have_the_same_collection_of_known_states
  assert_not_same @event.known_states, @copied_event.known_states
end