Class: Stories::Scenario
- Inherits:
-
Object
- Object
- Stories::Scenario
- Defined in:
- lib/stories/runner.rb
Instance Attribute Summary collapse
-
#assertions ⇒ Object
Returns the value of attribute assertions.
-
#name ⇒ Object
Returns the value of attribute name.
-
#steps ⇒ Object
Returns the value of attribute steps.
Instance Method Summary collapse
-
#initialize(name) ⇒ Scenario
constructor
A new instance of Scenario.
Constructor Details
#initialize(name) ⇒ Scenario
Returns a new instance of Scenario.
67 68 69 70 71 |
# File 'lib/stories/runner.rb', line 67 def initialize(name) @name = name @steps = [] @assertions = [] end |
Instance Attribute Details
#assertions ⇒ Object
Returns the value of attribute assertions.
65 66 67 |
# File 'lib/stories/runner.rb', line 65 def assertions @assertions end |
#name ⇒ Object
Returns the value of attribute name.
65 66 67 |
# File 'lib/stories/runner.rb', line 65 def name @name end |
#steps ⇒ Object
Returns the value of attribute steps.
65 66 67 |
# File 'lib/stories/runner.rb', line 65 def steps @steps end |