Methods

Class Index [+]

Quicksearch

Mocha::Integration::MiniTest

Public Class Methods

translate(exception) click to toggle source
    # File lib/mocha/integration/mini_test/exception_translation.rb, line 9
 9:       def self.translate(exception)
10:         return exception unless exception.kind_of?(::Mocha::ExpectationError)
11:         translated_exception = ::MiniTest::Assertion.new(exception.message)
12:         translated_exception.set_backtrace(exception.backtrace)
13:         translated_exception
14:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.