class FlexMock::RSpecFrameworkAdapter

Public Instance Methods

assert_equal(a, b, msg=nil) click to toggle source
# File lib/flexmock/rspec.rb, line 29
def assert_equal(a, b, msg=nil)
  message = msg || "Expected equal"
  make_assertion(message + "\n<#{a}> expected, but was\n<#{b}>") { a == b }
end
assertion_failed_error() click to toggle source
# File lib/flexmock/rspec.rb, line 35
def assertion_failed_error
  SpecModule::Expectations::ExpectationNotMetError
end
make_assertion(msg) { || ... } click to toggle source
# File lib/flexmock/rspec.rb, line 24
def make_assertion(msg, &block)
  msg = msg.call if msg.is_a?(Proc)
  SpecModule::Expectations.fail_with(msg) unless yield
end