Sha256: f0a739e312f5c217b4d56a1fea85b2b0806f7fbed8d1aa466c065b8742064594

Contents?: true

Size: 430 Bytes

Versions: 41

Compression:

Stored size: 430 Bytes

Contents

require 'mocha/expectation_error'

module Mocha
  
  module Integration
    
    module MiniTest
      
      def self.translate(exception)
        return exception unless exception.kind_of?(::Mocha::ExpectationError)
        translated_exception = ::MiniTest::Assertion.new(exception.message)
        translated_exception.set_backtrace(exception.backtrace)
        translated_exception
      end
      
    end
    
  end
  
end

Version data entries

41 entries across 36 versions & 6 rubygems

Version Path
challah-1.0.0.beta vendor/bundle/gems/mocha-0.10.5/lib/mocha/integration/mini_test/exception_translation.rb
challah-0.9.1.beta.3 vendor/bundle/gems/mocha-0.10.5/lib/mocha/integration/mini_test/exception_translation.rb
devise_sociable-0.1.0 vendor/bundle/gems/mocha-0.10.5/lib/mocha/integration/mini_test/exception_translation.rb
challah-0.9.1.beta vendor/bundle/gems/mocha-0.10.5/lib/mocha/integration/mini_test/exception_translation.rb
challah-0.9.0 vendor/bundle/gems/mocha-0.10.5/lib/mocha/integration/mini_test/exception_translation.rb
challah-0.6.2 vendor/bundle/gems/mocha-0.10.5/lib/mocha/integration/mini_test/exception_translation.rb
challah-0.6.1 vendor/bundle/gems/mocha-0.10.3/lib/mocha/integration/mini_test/exception_translation.rb
challah-0.6.1 vendor/bundle/gems/mocha-0.10.5/lib/mocha/integration/mini_test/exception_translation.rb
challah-0.6.0 vendor/bundle/gems/mocha-0.10.3/lib/mocha/integration/mini_test/exception_translation.rb
challah-0.6.0 vendor/bundle/gems/mocha-0.10.5/lib/mocha/integration/mini_test/exception_translation.rb
challah-0.5.4 vendor/bundle/gems/mocha-0.10.5/lib/mocha/integration/mini_test/exception_translation.rb
challah-0.5.4 vendor/bundle/gems/mocha-0.10.3/lib/mocha/integration/mini_test/exception_translation.rb
challah-0.5.3 vendor/bundle/gems/mocha-0.10.5/lib/mocha/integration/mini_test/exception_translation.rb
challah-0.5.3 vendor/bundle/gems/mocha-0.10.3/lib/mocha/integration/mini_test/exception_translation.rb
challah-0.5.2 vendor/bundle/gems/mocha-0.10.3/lib/mocha/integration/mini_test/exception_translation.rb
challah-0.5.2 vendor/bundle/gems/mocha-0.10.5/lib/mocha/integration/mini_test/exception_translation.rb
challah-0.5.1 vendor/bundle/gems/mocha-0.10.5/lib/mocha/integration/mini_test/exception_translation.rb
mocha-0.10.5 lib/mocha/integration/mini_test/exception_translation.rb
challah-0.5.0 vendor/bundle/gems/mocha-0.10.3/lib/mocha/integration/mini_test/exception_translation.rb
mocha-0.10.4 lib/mocha/integration/mini_test/exception_translation.rb