Class: TurboTests::FakeExample
- Inherits:
-
Struct
- Object
- Struct
- TurboTests::FakeExample
- Defined in:
- lib/turbo_tests.rb,
lib/turbo_tests.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#execution_result ⇒ Object
Returns the value of attribute execution_result.
-
#full_description ⇒ Object
Returns the value of attribute full_description.
-
#location ⇒ Object
Returns the value of attribute location.
-
#location_rerun_argument ⇒ Object
Returns the value of attribute location_rerun_argument.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#process_id ⇒ Object
Returns the value of attribute process_id.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description
57 58 59 |
# File 'lib/turbo_tests.rb', line 57 def description @description end |
#execution_result ⇒ Object
Returns the value of attribute execution_result
57 58 59 |
# File 'lib/turbo_tests.rb', line 57 def execution_result @execution_result end |
#full_description ⇒ Object
Returns the value of attribute full_description
57 58 59 |
# File 'lib/turbo_tests.rb', line 57 def full_description @full_description end |
#location ⇒ Object
Returns the value of attribute location
57 58 59 |
# File 'lib/turbo_tests.rb', line 57 def location @location end |
#location_rerun_argument ⇒ Object
Returns the value of attribute location_rerun_argument
57 58 59 |
# File 'lib/turbo_tests.rb', line 57 def location_rerun_argument @location_rerun_argument end |
#metadata ⇒ Object
Returns the value of attribute metadata
57 58 59 |
# File 'lib/turbo_tests.rb', line 57 def @metadata end |
#process_id ⇒ Object
Returns the value of attribute process_id
57 58 59 |
# File 'lib/turbo_tests.rb', line 57 def process_id @process_id end |
Class Method Details
.from_obj(obj, process_id) ⇒ Object
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
# File 'lib/turbo_tests.rb', line 69 def self.from_obj(obj, process_id) obj = obj.symbolize_keys = obj[:metadata].symbolize_keys [:shared_group_inclusion_backtrace].map! do |frame| frame = frame.symbolize_keys RSpec::Core::SharedExampleGroupInclusionStackFrame.new( frame[:shared_group_name], frame[:inclusion_location], ) end new( FakeExecutionResult.from_obj(obj[:execution_result]), obj[:location], obj[:description], obj[:full_description], , obj[:location_rerun_argument], process_id, ) end |
Instance Method Details
#notification ⇒ Object
92 93 94 |
# File 'lib/turbo_tests.rb', line 92 def notification RSpec::Core::Notifications::ExampleNotification.for(self) end |