class EvalHelpersSymbolWithBlockTest

Public Instance Methods

setup() click to toggle source
# File test/unit/eval_helpers_test.rb, line 50
def setup
  class << (@object = Object.new)
    def callback
      yield
    end
  end
end
test_should_call_method_on_object_with_block() click to toggle source
# File test/unit/eval_helpers_test.rb, line 58
def test_should_call_method_on_object_with_block
  assert_equal true, evaluate_method(@object, :callback) { true }
end