method
retrieve_mocha_counter
v3.2.1 -
Show latest stable
- Class:
ActiveSupport::Testing::SetupAndTeardown::ForClassicTestUnit
retrieve_mocha_counter(result)protected
No documentation available.
# File activesupport/lib/active_support/testing/setup_and_teardown.rb, line 98
def retrieve_mocha_counter(result) #:nodoc:
if respond_to?(:mocha_verify) # using mocha
if defined?(Mocha::TestCaseAdapter::AssertionCounter)
Mocha::TestCaseAdapter::AssertionCounter.new(result)
else
Mocha::Integration::TestUnit::AssertionCounter.new(result)
end
end
end