Class: Roby::Test::ExecutionExpectations::Quarantine
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, #unachievable?
Constructor Details
#initialize(task, backtrace) ⇒ Quarantine
Returns a new instance of Quarantine.
1109
1110
1111
1112
1113
1114
1115
1116
1117
|
# File 'lib/roby/test/execution_expectations.rb', line 1109
def initialize(task, backtrace)
super(backtrace)
@task = task
@related_error_matcher =
QuarantinedTaskError
.match
.to_execution_exception_matcher
end
|
Instance Method Details
#relates_to_error?(error) ⇒ Boolean
1123
1124
1125
|
# File 'lib/roby/test/execution_expectations.rb', line 1123
def relates_to_error?(error)
@related_error_matcher === error
end
|
1127
1128
1129
|
# File 'lib/roby/test/execution_expectations.rb', line 1127
def to_s
"#{@task} should be quarantined"
end
|
#update_match(_propagation_info) ⇒ Object
1119
1120
1121
|
# File 'lib/roby/test/execution_expectations.rb', line 1119
def update_match(_propagation_info)
@task.quarantined?
end
|