Class: CapturefulFormatter::Structures::Scenario
- Inherits:
-
Object
- Object
- CapturefulFormatter::Structures::Scenario
- Defined in:
- lib/captureful_formatter/structures.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#exception ⇒ Object
Returns the value of attribute exception.
-
#status ⇒ Object
Returns the value of attribute status.
-
#steps ⇒ Object
Returns the value of attribute steps.
Instance Method Summary collapse
- #hash ⇒ Object
-
#initialize(notification) ⇒ Scenario
constructor
- notification
-
ExampleNotification.
- #step_count ⇒ Object
Constructor Details
#initialize(notification) ⇒ Scenario
- notification
-
ExampleNotification
43 44 45 46 47 48 49 50 |
# File 'lib/captureful_formatter/structures.rb', line 43 def initialize(notification) @steps = [] @status = nil @description = notification.group.description @exception = nil feature_description = notification.group.[:parent_example_group][:description] @hash = Digest::MD5.hexdigest("#{feature_description}#{notification.group.description}") end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
37 38 39 |
# File 'lib/captureful_formatter/structures.rb', line 37 def description @description end |
#exception ⇒ Object
Returns the value of attribute exception.
39 40 41 |
# File 'lib/captureful_formatter/structures.rb', line 39 def exception @exception end |
#status ⇒ Object
Returns the value of attribute status.
38 39 40 |
# File 'lib/captureful_formatter/structures.rb', line 38 def status @status end |
#steps ⇒ Object
Returns the value of attribute steps.
36 37 38 |
# File 'lib/captureful_formatter/structures.rb', line 36 def steps @steps end |
Instance Method Details
#hash ⇒ Object
52 53 54 |
# File 'lib/captureful_formatter/structures.rb', line 52 def hash @hash end |
#step_count ⇒ Object
56 57 58 |
# File 'lib/captureful_formatter/structures.rb', line 56 def step_count @steps.size end |