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_namespaceObject



16
# File 'lib/mock_suey/rspec/mock_context.rb', line 16

def context_namespace = @context_namespace || NAMESPACE

Class Method Details

.collectorObject



18
# File 'lib/mock_suey/rspec/mock_context.rb', line 18

def collector = @collector ||= MocksCollector.new

.registryObject



20
# File 'lib/mock_suey/rspec/mock_context.rb', line 20

def registry = collector.registry