Class: TurboTests::FakeExecutionResult
- Inherits:
-
Struct
- Object
- Struct
- TurboTests::FakeExecutionResult
- Defined in:
- lib/turbo_tests.rb,
lib/turbo_tests.rb
Instance Attribute Summary collapse
-
#example_skipped? ⇒ Object
Returns the value of attribute example_skipped?.
-
#exception ⇒ Object
Returns the value of attribute exception.
-
#pending_exception ⇒ Object
Returns the value of attribute pending_exception.
-
#pending_fixed? ⇒ Object
Returns the value of attribute pending_fixed?.
-
#pending_message ⇒ Object
Returns the value of attribute pending_message.
-
#status ⇒ Object
Returns the value of attribute status.
Class Method Summary collapse
Instance Attribute Details
#example_skipped? ⇒ Object
Returns the value of attribute example_skipped?
46 47 48 |
# File 'lib/turbo_tests.rb', line 46
def example_skipped?
@example_skipped?
end
|
#exception ⇒ Object
Returns the value of attribute exception
46 47 48 |
# File 'lib/turbo_tests.rb', line 46 def exception @exception end |
#pending_exception ⇒ Object
Returns the value of attribute pending_exception
46 47 48 |
# File 'lib/turbo_tests.rb', line 46 def pending_exception @pending_exception end |
#pending_fixed? ⇒ Object
Returns the value of attribute pending_fixed?
46 47 48 |
# File 'lib/turbo_tests.rb', line 46
def pending_fixed?
@pending_fixed?
end
|
#pending_message ⇒ Object
Returns the value of attribute pending_message
46 47 48 |
# File 'lib/turbo_tests.rb', line 46 def @pending_message end |
#status ⇒ Object
Returns the value of attribute status
46 47 48 |
# File 'lib/turbo_tests.rb', line 46 def status @status end |
Class Method Details
.from_obj(obj) ⇒ Object
56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/turbo_tests.rb', line 56 def self.from_obj(obj) obj = obj.symbolize_keys new( obj[:example_skipped?], obj[:pending_message], obj[:status].to_sym, obj[:pending_fixed?], FakeException.from_obj(obj[:exception]), FakeException.from_obj(obj[:pending_exception]), ) end |