method

retrieve_mocha_counter

retrieve_mocha_counter(test_case, result)
protected

No documentation available.

# File activesupport/lib/active_support/testing/setup_and_teardown.rb, line 105
        def retrieve_mocha_counter(test_case, result) #:nodoc:
          if respond_to?(:mocha_verify) # using mocha
            if defined?(Mocha::TestCaseAdapter::AssertionCounter)
              Mocha::TestCaseAdapter::AssertionCounter.new(result)
            elsif defined?(Mocha::Integration::TestUnit::AssertionCounter)
              Mocha::Integration::TestUnit::AssertionCounter.new(result)
            elsif defined?(Mocha::MonkeyPatching::TestUnit::AssertionCounter)
              Mocha::MonkeyPatching::TestUnit::AssertionCounter.new(result)
            else
              Mocha::Integration::AssertionCounter.new(test_case)
            end
          end
        end