vendor/gems/flexmock-0.8.5/lib/flexmock/core.rb
def flexmock_wrap(&block)
    yield
  rescue FlexMock.framework_adapter.assertion_failed_error => ex
    raise FlexMock.framework_adapter.assertion_failed_error,
    "in mock '#{@flexmock_name}': #{ex.message}",
    ex.backtrace
  end
# Wrap a block of code so the any assertion errors are wrapped so
# that the mock name is added to the error message .
Wrap a block of code so the any assertion errors are wrapped so
that the mock name is added to the error message .
Wrap a block of code so the any assertion errors are wrapped so that the mock name is added to the error message .
def flexmock_wrap(&block)
    yield
  rescue FlexMock.framework_adapter.assertion_failed_error => ex
    raise FlexMock.framework_adapter.assertion_failed_error,
    "in mock '#{@flexmock_name}': #{ex.message}",
    ex.backtrace
  end
def flexmock_wrap ( & block ) yield rescue FlexMock . framework_adapter . assertion_failed_error => ex raise FlexMock . framework_adapter . assertion_failed_error , "in mock '#{@flexmock_name}': #{ex.message}" , ex . backtrace end
Wrap a block of code so the any assertion errors are wrapped so
that the mock name is added to the error message .
Wrap a block of code so the any assertion errors are wrapped so that the mock name is added to the error message .
block