Class: Roby::Test::ExecutionExpectations::PromiseFinishes
- Inherits:
-
Expectation
- Object
- Expectation
- Roby::Test::ExecutionExpectations::PromiseFinishes
- Defined in:
- lib/roby/test/execution_expectations.rb
Instance Attribute Summary
Attributes inherited from Expectation
Instance Method Summary collapse
-
#initialize(promise, backtrace) ⇒ PromiseFinishes
constructor
A new instance of PromiseFinishes.
- #to_s ⇒ Object
- #update_match(_propagation_info) ⇒ Object
Methods inherited from Expectation
#explain_unachievable, #filter_result, #filter_result_with, #format_unachievable_explanation, #relates_to_error?, #unachievable?
Constructor Details
#initialize(promise, backtrace) ⇒ PromiseFinishes
Returns a new instance of PromiseFinishes.
1294 1295 1296 1297 |
# File 'lib/roby/test/execution_expectations.rb', line 1294 def initialize(promise, backtrace) super(backtrace) @promise = promise end |
Instance Method Details
#to_s ⇒ Object
1303 1304 1305 |
# File 'lib/roby/test/execution_expectations.rb', line 1303 def to_s "#{@promise} should have finished" end |
#update_match(_propagation_info) ⇒ Object
1299 1300 1301 |
# File 'lib/roby/test/execution_expectations.rb', line 1299 def update_match(_propagation_info) @promise.complete? end |