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