Class: Stringup::Scenario

Inherits:
Object
  • Object
show all
Defined in:
lib/stringup/scenario.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, description = name.to_s.capitalize, &block) ⇒ Scenario

Returns a new instance of Scenario.



5
6
7
8
9
# File 'lib/stringup/scenario.rb', line 5

def initialize(name, description = name.to_s.capitalize, &block)
  @name = name
  @description = description
  instance_eval(&block)
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



4
5
6
# File 'lib/stringup/scenario.rb', line 4

def description
  @description
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/stringup/scenario.rb', line 4

def name
  @name
end

Instance Method Details

#assertionsObject



11
12
13
# File 'lib/stringup/scenario.rb', line 11

def assertions
  @assertions ||= []
end