Flowdock
method

retrieve_mocha_counter

Importance_0
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: ActiveSupport::Testing::SetupAndTeardown::ForClassicTestUnit

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.

retrieve_mocha_counter(test_case, 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 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
Register or log in to add new notes.