class FlexMock::TestUnitFrameworkAdapter

Adapter for adapting FlexMock to the Test::Unit framework.

Public Instance Methods

assertion_failed_error() click to toggle source
# File lib/flexmock/test_unit_integration.rb, line 60
def assertion_failed_error
  defined?(Test::Unit::AssertionFailedError) ? Test::Unit::AssertionFailedError : MiniTest::Assertion
end
make_assertion(msg) { || ... } click to toggle source
# File lib/flexmock/test_unit_integration.rb, line 50
def make_assertion(msg, &block)
  unless yield
    msg = msg.call if msg.is_a?(Proc)
    assert(false, msg)
  end
rescue assertion_failed_error => ex
  ex.message.sub!(%rExpected block to return true value./,'')
  raise ex
end