class EvalHelpersSymbolWithArgumentsAndBlockTest

Public Instance Methods

setup() click to toggle source
# File test/unit/eval_helpers_test.rb, line 64
def setup
  class << (@object = Object.new)
    def callback(*args)
      args << yield
    end
  end
end
test_should_call_method_on_object_with_all_arguments_and_block() click to toggle source
# File test/unit/eval_helpers_test.rb, line 72
def test_should_call_method_on_object_with_all_arguments_and_block
  assert_equal [1, 2, 3, true], evaluate_method(@object, :callback, 1, 2, 3) { true }
end