Class: Stories::Scenario

Inherits:
Object
  • Object
show all
Defined in:
lib/stories/runner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Scenario

Returns a new instance of Scenario.



66
67
68
69
70
# File 'lib/stories/runner.rb', line 66

def initialize(name)
  @name = name
  @steps = []
  @assertions = []
end

Instance Attribute Details

#assertionsObject

Returns the value of attribute assertions.



64
65
66
# File 'lib/stories/runner.rb', line 64

def assertions
  @assertions
end

#nameObject

Returns the value of attribute name.



64
65
66
# File 'lib/stories/runner.rb', line 64

def name
  @name
end

#stepsObject

Returns the value of attribute steps.



64
65
66
# File 'lib/stories/runner.rb', line 64

def steps
  @steps
end