Module: Factory

Defined in:
lib/branston/test/blueprints.rb

Class Method Summary collapse

Class Method Details

.make_scenario(story) ⇒ Object



99
100
101
102
103
104
105
# File 'lib/branston/test/blueprints.rb', line 99

def make_scenario(story)
  scenario = Scenario.make(:story => story)
  scenario.preconditions.make
  scenario.preconditions.make(:longer)
  2.times { scenario.outcomes.make }
  return scenario
end

.make_story(story_options = {}) ⇒ Object



93
94
95
96
97
# File 'lib/branston/test/blueprints.rb', line 93

def make_story(story_options = {})
  story = Story.make(story_options)
  2.times { story.scenarios << make_scenario(story) }
  return story
end