Class: RSpec::Distrib::ExecutionResults Private
- Inherits:
-
Object
- Object
- RSpec::Distrib::ExecutionResults
- Defined in:
- lib/rspec/distrib/example_group.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.
Objects that mimic an RSpec::Core::Example::ExecutionResult on the Reporters.
This is necessary because the RSpec::Core::Example is quite large and not Marshalable.
Defined Under Namespace
Classes: Exception
Instance Attribute Summary collapse
- #example_skipped ⇒ Object (also: #example_skipped?) readonly private
- #exception ⇒ Object readonly private
- #pending_exception ⇒ Object readonly private
- #pending_fixed ⇒ Object (also: #pending_fixed?) readonly private
- #pending_message ⇒ Object readonly private
- #run_time ⇒ Object readonly private
- #status ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(execution_results) ⇒ ExecutionResults
constructor
private
A new instance of ExecutionResults.
Constructor Details
#initialize(execution_results) ⇒ ExecutionResults
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 ExecutionResults.
142 143 144 145 146 147 148 149 150 |
# File 'lib/rspec/distrib/example_group.rb', line 142 def initialize(execution_results) @status = execution_results.status @pending_exception = Exception.new(execution_results.pending_exception) if execution_results.pending_exception @pending_message = execution_results. @exception = Exception.new(execution_results.exception) if execution_results.exception @example_skipped = execution_results.example_skipped? @pending_fixed = execution_results.pending_fixed? @run_time = execution_results.run_time end |
Instance Attribute Details
#example_skipped ⇒ Object (readonly) Also known as: example_skipped?
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.
139 140 141 |
# File 'lib/rspec/distrib/example_group.rb', line 139 def example_skipped @example_skipped end |
#exception ⇒ Object (readonly)
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.
139 140 141 |
# File 'lib/rspec/distrib/example_group.rb', line 139 def exception @exception end |
#pending_exception ⇒ Object (readonly)
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.
139 140 141 |
# File 'lib/rspec/distrib/example_group.rb', line 139 def pending_exception @pending_exception end |
#pending_fixed ⇒ Object (readonly) Also known as: pending_fixed?
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.
139 140 141 |
# File 'lib/rspec/distrib/example_group.rb', line 139 def pending_fixed @pending_fixed end |
#pending_message ⇒ Object (readonly)
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.
139 140 141 |
# File 'lib/rspec/distrib/example_group.rb', line 139 def @pending_message end |
#run_time ⇒ Object (readonly)
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.
139 140 141 |
# File 'lib/rspec/distrib/example_group.rb', line 139 def run_time @run_time end |
#status ⇒ Object (readonly)
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.
139 140 141 |
# File 'lib/rspec/distrib/example_group.rb', line 139 def status @status end |