Class: Kapnismology::RSpecResult
- Inherits:
-
BaseResult
- Object
- BaseResult
- Kapnismology::RSpecResult
- Defined in:
- lib/kapnismology/spec_helper.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#debug_messages ⇒ Object
readonly
Returns the value of attribute debug_messages.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Attributes inherited from BaseResult
Instance Method Summary collapse
-
#initialize(result) ⇒ RSpecResult
constructor
A new instance of RSpecResult.
Methods inherited from BaseResult
#add_debug_messages, #passed?, #record_duration, #to_hash, #to_s
Constructor Details
#initialize(result) ⇒ RSpecResult
Returns a new instance of RSpecResult.
6 7 8 9 10 11 12 |
# File 'lib/kapnismology/spec_helper.rb', line 6 def initialize(result) hash = result.to_hash @data = hash[:data] @message = hash[:message] @passed = hash[:passed] @debug_messages = hash[:debug_messages] end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
5 6 7 |
# File 'lib/kapnismology/spec_helper.rb', line 5 def data @data end |
#debug_messages ⇒ Object (readonly)
Returns the value of attribute debug_messages.
5 6 7 |
# File 'lib/kapnismology/spec_helper.rb', line 5 def @debug_messages end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
5 6 7 |
# File 'lib/kapnismology/spec_helper.rb', line 5 def @message end |