Parent

Included Modules

FlexMock::TestUnitFrameworkAdapter

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

Public Instance Methods

assert_block(msg, &block) click to toggle source
# File lib/flexmock/test_unit_integration.rb, line 50
def assert_block(msg, &block)
  unless yield
    msg = msg.call if msg.is_a?(Proc)
    super(msg) { false }
  end
rescue assertion_failed_error => ex
  ex.message.sub!(/Expected block to return true value./,'')
  raise ex
end
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

[Validate]

Generated with the Darkfish Rdoc Generator 2.