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.
1237 1238 1239 1240 |
# File 'lib/roby/test/execution_expectations.rb', line 1237 def initialize(promise, backtrace) super(backtrace) @promise = promise end |
Instance Method Details
#to_s ⇒ Object
1246 1247 1248 |
# File 'lib/roby/test/execution_expectations.rb', line 1246 def to_s "#{@promise} should have finished" end |
#update_match(_propagation_info) ⇒ Object
1242 1243 1244 |
# File 'lib/roby/test/execution_expectations.rb', line 1242 def update_match(_propagation_info) @promise.complete? end |