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
- #setup_mocks_for_rspec ⇒ Object
- #teardown_mocks_for_rspec ⇒ Object
-
#verify_mocks_for_rspec ⇒ Object
No setup required.
Class Method Details
.configuration ⇒ Object
9 10 11 |
# File 'lib/rspec/core/mocking/with_rspec.rb', line 9 def self.configuration RSpec::Mocks.configuration end |
.framework_name ⇒ Object
9 |
# File 'lib/rspec/core/mocking/with_rr.rb', line 9 def self.framework_name; :rr end |
Instance Method Details
#setup_mocks_for_rspec ⇒ Object
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_rspec ⇒ Object
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_rspec ⇒ Object
No setup required
18 19 20 |
# File 'lib/rspec/core/mocking/with_flexmock.rb', line 18 def verify_mocks_for_rspec RR::Space.instance.verify_doubles end |