Sha256: 70f66bd47906b9754e90f706dc0b8dfd2bda051d83972f2130e9e92f4e7690b2

Contents?: true

Size: 1.08 KB

Versions: 26

Compression:

Stored size: 1.08 KB

Contents

require 'mocha/integration/mini_test/assertion_counter'

module Mocha
  
  module Integration
    
    module MiniTest
      
      module Version13
        def self.included(mod)
          $stderr.puts "Monkey patching MiniTest v1.3" if $options['debug']
        end
        def run runner
          assertion_counter = AssertionCounter.new(self)
          result = '.'
          begin
            begin
              @passed = nil
              self.setup
              self.__send__ self.name
              mocha_verify(assertion_counter)
              @passed = true
            rescue Exception => e
              @passed = false
              result = runner.puke(self.class, self.name, Mocha::Integration::MiniTest.translate(e))
            ensure
              begin
                self.teardown
              rescue Exception => e
                result = runner.puke(self.class, self.name, Mocha::Integration::MiniTest.translate(e))
              end
            end
          ensure
            mocha_teardown
          end
          result
        end
      end
      
    end
    
  end
  
end

Version data entries

26 entries across 26 versions & 4 rubygems

Version Path
challah-0.6.1 vendor/bundle/gems/mocha-0.10.3/lib/mocha/integration/mini_test/version_13.rb
challah-0.6.0 vendor/bundle/gems/mocha-0.10.3/lib/mocha/integration/mini_test/version_13.rb
challah-0.5.4 vendor/bundle/gems/mocha-0.10.3/lib/mocha/integration/mini_test/version_13.rb
challah-0.5.3 vendor/bundle/gems/mocha-0.10.3/lib/mocha/integration/mini_test/version_13.rb
challah-0.5.2 vendor/bundle/gems/mocha-0.10.3/lib/mocha/integration/mini_test/version_13.rb
challah-0.5.0 vendor/bundle/gems/mocha-0.10.3/lib/mocha/integration/mini_test/version_13.rb
challah-0.4.1 vendor/bundle/gems/mocha-0.10.3/lib/mocha/integration/mini_test/version_13.rb
challah-0.4.0 vendor/bundle/gems/mocha-0.10.3/lib/mocha/integration/mini_test/version_13.rb
challah-0.3.5 vendor/bundle/gems/mocha-0.10.3/lib/mocha/integration/mini_test/version_13.rb
challah-0.3.4 vendor/bundle/gems/mocha-0.10.3/lib/mocha/integration/mini_test/version_13.rb
challah-0.3.3 vendor/bundle/gems/mocha-0.10.3/lib/mocha/integration/mini_test/version_13.rb
challah-0.3.2 vendor/bundle/gems/mocha-0.10.3/lib/mocha/integration/mini_test/version_13.rb
challah-0.3.1 vendor/bundle/gems/mocha-0.10.3/lib/mocha/integration/mini_test/version_13.rb
challah-0.3.0 vendor/bundle/gems/mocha-0.10.3/lib/mocha/integration/mini_test/version_13.rb
challah-0.2.1 vendor/bundle/gems/mocha-0.10.3/lib/mocha/integration/mini_test/version_13.rb
challah-0.2.0 vendor/bundle/gems/mocha-0.10.3/lib/mocha/integration/mini_test/version_13.rb
mocha-0.10.3 lib/mocha/integration/mini_test/version_13.rb
mocha-0.10.2 lib/mocha/integration/mini_test/version_13.rb
mocha-0.10.1 lib/mocha/integration/mini_test/version_13.rb
vanity-1.7.1 vendor/ruby/1.9.1/gems/mocha-0.9.12/lib/mocha/integration/mini_test/version_13.rb