Module: RSpec::Core::MockFrameworkAdapter

Includes:
FlexMock::MockContainer, RR::Extensions::InstanceMethods
Defined in:
lib/rspec/core/mocking/with_rr.rb,
lib/rspec/core/mocking/with_rspec.rb,
lib/rspec/core/mocking/with_mocha.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

+ (Object) configuration

9
10
11
# File 'lib/rspec/core/mocking/with_rspec.rb', line 9
def self.configuration
  RSpec::Mocks.configuration
end

+ (Object) framework_name

9
# File 'lib/rspec/core/mocking/with_rr.rb', line 9
def self.framework_name; :rr end

Instance Method Details

- (Object) setup_mocks_for_rspec

13
14
15
# File 'lib/rspec/core/mocking/with_rr.rb', line 13
def setup_mocks_for_rspec
  RR::Space.instance.reset
end

- (Object) teardown_mocks_for_rspec

21
22
23
# File 'lib/rspec/core/mocking/with_rr.rb', line 21
def teardown_mocks_for_rspec
  RR::Space.instance.reset
end

- (Object) verify_mocks_for_rspec

17
18
19
# File 'lib/rspec/core/mocking/with_rr.rb', line 17
def verify_mocks_for_rspec
  RR::Space.instance.verify_doubles
end