Class: Roby::Test::ExecutionExpectations::HaveHandledErrorMatching

Inherits:
ErrorExpectation 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 ErrorExpectation

#initialize, #relates_to_error?, #return_object

Methods inherited from Expectation

#explain_unachievable, #initialize, #relates_to_error?, #unachievable?

Constructor Details

This class inherits a constructor from Roby::Test::ExecutionExpectations::ErrorExpectation

Instance Method Details

#to_sObject



901
902
903
# File 'lib/roby/test/execution_expectations.rb', line 901

def to_s
    "should have handled an error matching #{@matcher}"
end

#update_match(propagation_info) ⇒ Object



897
898
899
# File 'lib/roby/test/execution_expectations.rb', line 897

def update_match(propagation_info)
    super(propagation_info.handled_errors.map(&:first), propagation_info.emitted_events)
end