Module: RSpec::Core::MockingAdapters::RR

Includes:
RR::Extensions::InstanceMethods
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/mocking_adapters/rr.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.framework_nameObject



11
12
13
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/mocking_adapters/rr.rb', line 11

def self.framework_name
  :rr
end

Instance Method Details

#setup_mocks_for_rspecObject



17
18
19
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/mocking_adapters/rr.rb', line 17

def setup_mocks_for_rspec
  ::RR::Space.instance.reset
end

#teardown_mocks_for_rspecObject



25
26
27
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/mocking_adapters/rr.rb', line 25

def teardown_mocks_for_rspec
  ::RR::Space.instance.reset
end

#verify_mocks_for_rspecObject



21
22
23
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/mocking_adapters/rr.rb', line 21

def verify_mocks_for_rspec
  ::RR::Space.instance.verify_doubles
end