class CallbackWithoutTerminatorTest

Public Instance Methods

setup() click to toggle source
# File test/unit/callback_test.rb, line 313
def setup
  @object = Object.new
end
test_should_not_halt_if_result_is_false() click to toggle source
# File test/unit/callback_test.rb, line 317
def test_should_not_halt_if_result_is_false
  callback = StateMachine::Callback.new(:before, :do => lambda {false}, :terminator => nil)
  assert_nothing_thrown { callback.call(@object) }
end