Class: Protest::Stories::Scenario

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Scenario

Returns a new instance of Scenario.



63
64
65
66
67
# File 'lib/protest/stories.rb', line 63

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

Instance Attribute Details

#assertionsObject

Returns the value of attribute assertions.



61
62
63
# File 'lib/protest/stories.rb', line 61

def assertions
  @assertions
end

#nameObject

Returns the value of attribute name.



61
62
63
# File 'lib/protest/stories.rb', line 61

def name
  @name
end

#stepsObject

Returns the value of attribute steps.



61
62
63
# File 'lib/protest/stories.rb', line 61

def steps
  @steps
end