class FlexMock::DefaultFrameworkAdapter

Public Instance Methods

assert_equal(a, b, msg=nil) click to toggle source
# File lib/flexmock/default_framework_adapter.rb, line 23
def assert_equal(a, b, msg=nil)
  make_assertion(msg || "Expected equal") { a == b }
end
assertion_failed_error() click to toggle source
# File lib/flexmock/default_framework_adapter.rb, line 28
def assertion_failed_error
  AssertionFailedError
end
make_assertion(msg) { || ... } click to toggle source
# File lib/flexmock/default_framework_adapter.rb, line 16
def make_assertion(msg, &block)
  unless yield
    msg = msg.call if msg.is_a?(Proc)
    fail assertion_failed_error, msg
  end
end