| Class | Spec::Story::Story |
| In: |
lib/spec/story/story.rb
|
| Parent: | Object |
| narrative | [R] | |
| title | [R] |
# File lib/spec/story/story.rb, line 6
6: def initialize(title, narrative, params = {}, &body)
7: @body = body
8: @title = title
9: @narrative = narrative
10: @params = params
11: end
# File lib/spec/story/story.rb, line 21
21: def assign_steps_to(assignee)
22: if steps=@params[:steps_for]
23: steps = [steps] unless steps.is_a?(Array)
24: steps.each do |step|
25: if step.is_a?(StepGroup)
26: assignee.use(step)
27: else
28: assignee.use(steps_for(step))
29: end
30: end
31: end
32: end