Class: TurboTests::FakeExample
- Inherits:
-
Struct
- Object
- Struct
- TurboTests::FakeExample
- Defined in:
- lib/turbo_tests.rb,
lib/turbo_tests.rb
Instance Attribute Summary collapse
-
#command_string ⇒ Object
Returns the value of attribute command_string.
-
#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
#command_string ⇒ Object
Returns the value of attribute command_string
69 70 71 |
# File 'lib/turbo_tests.rb', line 69 def command_string @command_string end |
#description ⇒ Object
Returns the value of attribute description
69 70 71 |
# File 'lib/turbo_tests.rb', line 69 def description @description end |
#execution_result ⇒ Object
Returns the value of attribute execution_result
69 70 71 |
# File 'lib/turbo_tests.rb', line 69 def execution_result @execution_result end |
#full_description ⇒ Object
Returns the value of attribute full_description
69 70 71 |
# File 'lib/turbo_tests.rb', line 69 def full_description @full_description end |
#location ⇒ Object
Returns the value of attribute location
69 70 71 |
# File 'lib/turbo_tests.rb', line 69 def location @location end |
#location_rerun_argument ⇒ Object
Returns the value of attribute location_rerun_argument
69 70 71 |
# File 'lib/turbo_tests.rb', line 69 def location_rerun_argument @location_rerun_argument end |
#metadata ⇒ Object
Returns the value of attribute metadata
69 70 71 |
# File 'lib/turbo_tests.rb', line 69 def @metadata end |
#process_id ⇒ Object
Returns the value of attribute process_id
69 70 71 |
# File 'lib/turbo_tests.rb', line 69 def process_id @process_id end |
Class Method Details
.from_obj(obj, process_id:, command_string:) ⇒ Object
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
# File 'lib/turbo_tests.rb', line 82 def self.from_obj(obj, process_id:, command_string:) 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, command_string, ) end |
Instance Method Details
#notification ⇒ Object
106 107 108 |
# File 'lib/turbo_tests.rb', line 106 def notification RSpec::Core::Notifications::ExampleNotification.for(self) end |