Module: Spec::Adapters::MockFramework

Includes:
FlexMock::MockContainer, RR::Extensions::InstanceMethods
Defined in:
lib/vendor/plugins/rspec/lib/spec/adapters/mock_frameworks/rr.rb,
lib/vendor/plugins/rspec/lib/spec/adapters/mock_frameworks/mocha.rb,
lib/vendor/plugins/rspec/lib/spec/adapters/mock_frameworks/flexmock.rb

Instance Method Summary collapse

Instance Method Details

#setup_mocks_for_rspecObject



11
12
13
# File 'lib/vendor/plugins/rspec/lib/spec/adapters/mock_frameworks/rr.rb', line 11

def setup_mocks_for_rspec
  RR::Space.instance.reset
end

#teardown_mocks_for_rspecObject



17
18
19
# File 'lib/vendor/plugins/rspec/lib/spec/adapters/mock_frameworks/rr.rb', line 17

def teardown_mocks_for_rspec
  RR::Space.instance.reset
end

#verify_mocks_for_rspecObject

No setup required



16
17
18
# File 'lib/vendor/plugins/rspec/lib/spec/adapters/mock_frameworks/flexmock.rb', line 16

def verify_mocks_for_rspec
  RR::Space.instance.verify_doubles
end