Class: RSpec::Distrib::Worker::LeaderReporter Private
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- RSpec::Distrib::Worker::LeaderReporter
- Defined in:
- lib/rspec/distrib/worker/leader_reporter.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Custom reporter to notify leader about non_example_exception
Instance Method Summary collapse
-
#initialize(leader) ⇒ LeaderReporter
constructor
private
A new instance of LeaderReporter.
-
#notify_non_example_exception(exception, context_description) ⇒ Object
private
Calls original behaviour and notifies leader.
Constructor Details
#initialize(leader) ⇒ LeaderReporter
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of LeaderReporter.
10 11 12 13 |
# File 'lib/rspec/distrib/worker/leader_reporter.rb', line 10 def initialize(leader, *) super(*) @leader = leader end |
Instance Method Details
#notify_non_example_exception(exception, context_description) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Calls original behaviour and notifies leader
17 18 19 20 21 22 23 24 |
# File 'lib/rspec/distrib/worker/leader_reporter.rb', line 17 def notify_non_example_exception(exception, context_description) super return if force_exit_signal? converted_exception = RSpec::Distrib::ExecutionResults::Exception.new(exception) @leader.notify_non_example_exception(converted_exception, context_description) end |