method

retrieve_mocha_counter

Importance_0
v3.2.8 - Show latest stable - 0 notes - Class: ActiveSupport::Testing::SetupAndTeardown::ForClassicTestUnit
retrieve_mocha_counter(result) protected

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/testing/setup_and_teardown.rb, line 103
        def retrieve_mocha_counter(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)
            else
              Mocha::MonkeyPatching::TestUnit::AssertionCounter.new(result)
            end
          end
        end
Register or log in to add new notes.