Module: RSpec::Core::MockFrameworkAdapter

Includes:
FlexMock::MockContainer, RR::Extensions::InstanceMethods
Defined in:
lib/rspec/core/mocking/with_rr.rb,
lib/rspec/core/mocking/with_mocha.rb,
lib/rspec/core/mocking/with_rspec.rb,
lib/rspec/core/mocking/with_flexmock.rb,
lib/rspec/core/mocking/with_absolutely_nothing.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.configurationObject


9
10
11
# File 'lib/rspec/core/mocking/with_rspec.rb', line 9

def self.configuration
  RSpec::Mocks.configuration
end

.framework_nameObject


9
# File 'lib/rspec/core/mocking/with_rr.rb', line 9

def self.framework_name; :rr end

Instance Method Details

#setup_mocks_for_rspecObject


13
14
15
# File 'lib/rspec/core/mocking/with_rr.rb', line 13

def setup_mocks_for_rspec
  RR::Space.instance.reset
end

#teardown_mocks_for_rspecObject


21
22
23
# File 'lib/rspec/core/mocking/with_rr.rb', line 21

def teardown_mocks_for_rspec
  RR::Space.instance.reset
end

#verify_mocks_for_rspecObject


17
18
19
# File 'lib/rspec/core/mocking/with_rr.rb', line 17

def verify_mocks_for_rspec
  RR::Space.instance.verify_doubles
end