Class: CabezaDeTermo::JsonSpec::CanBeAbsentModifier
- Inherits:
-
ExpressionModifier
- Object
- ExpressionModifier
- CabezaDeTermo::JsonSpec::CanBeAbsentModifier
- Defined in:
- lib/cabeza-de-termo/json-spec/modifiers/can-be-absent-modifier.rb
Instance Method Summary collapse
Instance Method Details
#run_on(expression) ⇒ Object
7 8 9 10 |
# File 'lib/cabeza-de-termo/json-spec/modifiers/can-be-absent-modifier.rb', line 7 def run_on(expression) can_be_absent_runner = CanBeAbsentExpectationsRunner.new(expression.expectations_runner) expression.set_expectations_runner(can_be_absent_runner) end |