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.



1299
1300
1301
1302
# File 'lib/roby/test/execution_expectations.rb', line 1299

def initialize(promise, backtrace)
    super(backtrace)
    @promise = promise
end

Instance Method Details

#to_sObject



1308
1309
1310
# File 'lib/roby/test/execution_expectations.rb', line 1308

def to_s
    "#{@promise} should have finished"
end

#update_match(_propagation_info) ⇒ Object



1304
1305
1306
# File 'lib/roby/test/execution_expectations.rb', line 1304

def update_match(_propagation_info)
    @promise.complete?
end