class Roby::Test::ExecutionExpectations::HaveFrameworkError
Public Class Methods
new(error_matcher, backtrace)
click to toggle source
Calls superclass method
Roby::Test::ExecutionExpectations::Expectation::new
# File lib/roby/test/execution_expectations.rb, line 1022 def initialize(error_matcher, backtrace) super(backtrace) @error_matcher = error_matcher end
Public Instance Methods
relates_to_error?(error)
click to toggle source
# File lib/roby/test/execution_expectations.rb, line 1033 def relates_to_error?(error) @matched_exceptions.include?(error) end
to_s()
click to toggle source
# File lib/roby/test/execution_expectations.rb, line 1037 def to_s "should have a framework error matching #{@error_matcher}" end
update_match(propagation_info)
click to toggle source
# File lib/roby/test/execution_expectations.rb, line 1027 def update_match(propagation_info) @matched_exceptions = propagation_info.framework_errors. map(&:first).find_all { |e| @error_matcher === e } !@matched_exceptions.empty? end