class EvalHelpersProcWithBlockWithoutArgumentsTest

Public Instance Methods

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