class CallbackWithArgumentsTest
Public Instance Methods
setup()
click to toggle source
# File test/unit/callback_test.rb, line 358 def setup @callback = StateMachine::Callback.new(:before, :do => lambda {|*args| @args = args}) @object = Object.new @callback.call(@object, {}, 1, 2, 3) end
test_should_call_method_with_all_arguments()
click to toggle source
# File test/unit/callback_test.rb, line 365 def test_should_call_method_with_all_arguments assert_equal [@object, 1, 2, 3], @args end