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.



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_sObject



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