Class: Lookout::Actual
Overview
Stands in for the actual result of the expect block, allowing a query method to call on the actual result to be set up and checked after the expect block returns. Used by Expectations::Context#result.
Direct Known Subclasses
Defined Under Namespace
Constant Summary
Constants inherited from Aphonic
Instance Method Summary collapse
-
#be ⇒ self
Method for improving readability of query method set-up.
-
#have ⇒ self
Method for improving readability of query method set-up.
-
#not ⇒ Actual::Not
A result stand-in that’s the inversion of the receiver.
-
#to ⇒ self
Method for improving readability of query method set-up.
Methods inherited from Aphonic
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
Instance Method Details
#be ⇒ self
Method for improving readability of query method set-up.
18 |
# File 'lib/lookout-3.0/actual.rb', line 18 def be; self end |
#have ⇒ self
Method for improving readability of query method set-up.
22 |
# File 'lib/lookout-3.0/actual.rb', line 22 def have; self end |
#not ⇒ Actual::Not
Returns A result stand-in that’s the inversion of the receiver.
10 |
# File 'lib/lookout-3.0/actual.rb', line 10 def not; Lookout::Actual::Not.new end |
#to ⇒ self
Method for improving readability of query method set-up.
14 |
# File 'lib/lookout-3.0/actual.rb', line 14 def to; self end |