class EvalHelpersProcWithoutArgumentsTest

Public Instance Methods

setup() click to toggle source
# File test/unit/eval_helpers_test.rb, line 134
def setup
  @object = Object.new
  @proc = lambda {|*args| args}
  class << @proc
    def arity
      0
    end
  end
end
test_should_call_proc_with_no_arguments() click to toggle source
# File test/unit/eval_helpers_test.rb, line 144
def test_should_call_proc_with_no_arguments
  assert_equal [], evaluate_method(@object, @proc, 1, 2, 3)
end