Class: RR::DoubleDefinitions::ChildDoubleDefinitionCreate

Inherits:
DoubleDefinitionCreate show all
Defined in:
lib/rr/double_definitions/child_double_definition_create.rb

Overview

:nodoc

Constant Summary

Constant Summary

Constants inherited from DoubleDefinitionCreate

DoubleDefinitionCreate::NO_SUBJECT

Instance Attribute Summary collapse

Attributes inherited from DoubleDefinitionCreate

#double_injection_strategy, #implementation_strategy, #subject, #verification_strategy

Instance Method Summary collapse

Methods inherited from DoubleDefinitionCreate

#call, #dont_allow, #method_name, #mock, #proxy, #strong, #stub

Methods included from Strategies::StrategyMethods

#any_instance_of!, #dont_allow!, #instance_of!, #mock!, #proxy!, #strong!, #stub!

Methods included from DoubleDefinitionCreate::StrategySetupMethods

#no_subject?

Methods included from Space::Reader

#space

Constructor Details

#initialize(parent_double_definition) ⇒ ChildDoubleDefinitionCreate

Returns a new instance of ChildDoubleDefinitionCreate



5
6
7
8
# File 'lib/rr/double_definitions/child_double_definition_create.rb', line 5

def initialize(parent_double_definition)
  @parent_double_definition = parent_double_definition
  super()
end

Instance Attribute Details

#parent_double_definitionObject (readonly)

Returns the value of attribute parent_double_definition



4
5
6
# File 'lib/rr/double_definitions/child_double_definition_create.rb', line 4

def parent_double_definition
  @parent_double_definition
end

Instance Method Details

#instance_of(*args) ⇒ Object

Raises:

  • (NoMethodError)


14
15
16
# File 'lib/rr/double_definitions/child_double_definition_create.rb', line 14

def instance_of(*args)
  raise NoMethodError
end

#root_subjectObject



10
11
12
# File 'lib/rr/double_definitions/child_double_definition_create.rb', line 10

def root_subject
  parent_double_definition.root_subject
end