Class: CabezaDeTermo::JsonSpec::ExpectingAllOfExpectationDefinition
- Inherits:
-
ExpectationDefinition
- Object
- ExpectationDefinition
- CabezaDeTermo::JsonSpec::ExpectingAllOfExpectationDefinition
- Defined in:
- lib/cabeza-de-termo/json-spec/expectations-library/definition-builders/expectation-builders/expecting-all-of-expectation-definition.rb
Instance Method Summary collapse
- #and_also(expectation_method, *args) ⇒ Object
- #expectation_instantiator ⇒ Object
-
#initialize(*args) ⇒ ExpectingAllOfExpectationDefinition
constructor
A new instance of ExpectingAllOfExpectationDefinition.
Methods inherited from ExpectationDefinition
Constructor Details
#initialize(*args) ⇒ ExpectingAllOfExpectationDefinition
Returns a new instance of ExpectingAllOfExpectationDefinition.
8 9 10 11 12 |
# File 'lib/cabeza-de-termo/json-spec/expectations-library/definition-builders/expectation-builders/expecting-all-of-expectation-definition.rb', line 8 def initialize(*args) super(*args) @expectation_instantiatiors = [] end |
Instance Method Details
#and_also(expectation_method, *args) ⇒ Object
14 15 16 |
# File 'lib/cabeza-de-termo/json-spec/expectations-library/definition-builders/expectation-builders/expecting-all-of-expectation-definition.rb', line 14 def and_also(expectation_method, *args) @expectation_instantiatiors << PartialApplicationInstantiator.new(expectation_instantiator_for(expectation_method), args) end |
#expectation_instantiator ⇒ Object
18 19 20 |
# File 'lib/cabeza-de-termo/json-spec/expectations-library/definition-builders/expectation-builders/expecting-all-of-expectation-definition.rb', line 18 def expectation_instantiator() AllExpectationsCompositeInstantiator.with_all(@expectation_instantiatiors) end |