Module: Mocha::Integration::MiniTest
- Defined in:
- lib/mocha/integration/mini_test/assertion_counter.rb,
lib/mocha/integration/mini_test/version_131_and_above.rb
Defined Under Namespace
Modules: Version131AndAbove Classes: AssertionCounter
Class Method Summary collapse
Class Method Details
.translate(exception) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/mocha/integration/mini_test/version_131_and_above.rb', line 10 def self.translate(exception) return exception unless exception.kind_of?(::Mocha::ExpectationError) translated_exception = ::MiniTest::Assertion.new(exception.) translated_exception.set_backtrace(exception.backtrace) translated_exception end |