Class: Fix::ExpectationHigh
- Inherits:
-
Expectation
- Object
- Expectation
- Fix::ExpectationHigh
- Defined in:
- lib/fix/expectation_high.rb
Direct Known Subclasses
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
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fix/expectation_high.rb', line 6 def evaluate front_object subject = Subject.new front_object, *@args got = nil Thread.new { report = expect { got = subject.actual }. public_send target, @matcher => @expected data = presenter report, got Hash[ data.to_a + (subject).to_a ] }.value end |