Module: RSpec::Mocks::MinitestIntegration

Includes:
ExampleMethods
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-mocks-3.12.2/lib/rspec/mocks/minitest_integration.rb

Instance Method Summary collapse

Methods included from ExampleMethods

#allow, #allow_any_instance_of, #allow_message_expectations_on_nil, #class_double, #class_spy, declare_double, declare_verifying_double, #double, #expect, #expect_any_instance_of, extended, #have_received, #hide_const, included, #instance_double, #instance_spy, #object_double, #object_spy, #receive, #receive_message_chain, #receive_messages, #spy, #stub_const, #without_partial_double_verification

Methods included from ArgumentMatchers

#any_args, #anything, anythingize_lonely_keys, #array_including, #boolean, #duck_type, #hash_excluding, #hash_including, #instance_of, #kind_of, #no_args

Instance Method Details

#after_teardownObject



14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-mocks-3.12.2/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

#before_setupObject



9
10
11
12
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-mocks-3.12.2/lib/rspec/mocks/minitest_integration.rb', line 9

def before_setup
  ::RSpec::Mocks.setup
  super
end