Class: Given::NegativeExpectation
- Inherits:
-
Expectation
- Object
- Expectation
- Given::NegativeExpectation
- Defined in:
- lib/given/expectation.rb
Instance Method Summary collapse
Methods inherited from Expectation
#<, #<=, #==, #=~, #>, #>=, #check, #initialize, #method_missing, #nil?, #not
Constructor Details
This class inherits a constructor from Given::Expectation
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Given::Expectation
Instance Method Details
#evaluate_condition ⇒ Object
85 86 87 |
# File 'lib/given/expectation.rb', line 85 def evaluate_condition ! yield(@value) end |
#twist ⇒ Object
88 89 90 |
# File 'lib/given/expectation.rb', line 88 def twist "not " end |