class CallbackWithoutArgumentsTest
Public Instance Methods
setup()
click to toggle source
# File test/unit/callback_test.rb, line 345 def setup @callback = StateMachine::Callback.new(:before, :do => lambda {|object| @arg = object}) @object = Object.new @callback.call(@object, {}, 1, 2, 3) end
test_should_call_method_with_object_as_argument()
click to toggle source
# File test/unit/callback_test.rb, line 352 def test_should_call_method_with_object_as_argument assert_equal @object, @arg end