Module: MockSuey::RSpec::MockContext
- Defined in:
- lib/mock_suey/rspec/mock_context.rb
Overview
Special type of shared context for mocks. The main difference is that it can track mocked classes and methods.
Defined Under Namespace
Modules: DSL, ExampleGroup
Classes: MocksCollector
Constant Summary
collapse
- NAMESPACE =
"mock::"
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.context_namespace ⇒ Object
16
|
# File 'lib/mock_suey/rspec/mock_context.rb', line 16
def context_namespace = @context_namespace || NAMESPACE
|
Class Method Details
.collector ⇒ Object
18
|
# File 'lib/mock_suey/rspec/mock_context.rb', line 18
def collector = @collector ||= MocksCollector.new
|
.registry ⇒ Object
20
|
# File 'lib/mock_suey/rspec/mock_context.rb', line 20
def registry = collector.registry
|