class EvalHelpersProcBlockAndExplicitArgumentsTest
Public Instance Methods
setup()
click to toggle source
# File test/unit/eval_helpers_test.rb, line 213 def setup @object = Object.new @proc = lambda {|object, arg1, arg2, arg3, block| [object, arg1, arg2, arg3, block]} end
test_should_call_method_on_object_with_all_arguments_and_block()
click to toggle source
# File test/unit/eval_helpers_test.rb, line 218 def test_should_call_method_on_object_with_all_arguments_and_block block = lambda { true } assert_equal [@object, 1, 2, 3, block], evaluate_method(@object, @proc, 1, 2, 3, &block) end