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

Includes:
RR::Extensions::InstanceMethods
Defined in:
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/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/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/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/rspec/core/mocking_adapters/rr.rb', line 21

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