Class: Fix::ExpectationMedium
- Inherits:
-
ExpectationHigh
- Object
- Expectation
- ExpectationHigh
- Fix::ExpectationMedium
- Defined in:
- lib/fix/expectation_medium.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Expectation
Instance Method Summary collapse
Methods inherited from Expectation
Constructor Details
This class inherits a constructor from Fix::Expectation
Instance Method Details
#evaluate(front_object) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/fix/expectation_medium.rb', line 5 def evaluate front_object subject = Subject.new front_object, *@args got = nil Thread.new { report = expect { got = subject.actual }.public_send target, @definition data = presenter report, got, subject Hash[ data.to_a + (subject).to_a ].merge object: front_object }.value end |