module RSpec::Mocks::MinitestIntegration
@private
Public Instance Methods
Calls superclass method
# File rspec-mocks/lib/rspec/mocks/minitest_integration.rb, line 14 def after_teardown super # Only verify if there's not already an error. Otherwise # we risk getting the same failure twice, since negative # expectation violations raise both when the message is # unexpectedly received, and also during `verify` (in case # the first failure was caught by user code via a # `rescue Exception`). ::RSpec::Mocks.verify unless failures.any? ensure ::RSpec::Mocks.teardown end
Calls superclass method
# File rspec-mocks/lib/rspec/mocks/minitest_integration.rb, line 9 def before_setup ::RSpec::Mocks.setup super end