Class: Roby::Test::ExecutionExpectations::PromiseFinishes

Inherits:
Expectation show all
Defined in:
lib/roby/test/execution_expectations.rb

Instance Attribute Summary

Attributes inherited from Expectation

#backtrace

Instance Method Summary collapse

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_sObject



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