method
story_started
1.1.12 -
Show latest stable
- Class:
Spec::Runner::Formatter::Story::PlainTextFormatter
story_started(title, narrative)public
No documentation available.
# File lib/spec/runner/formatter/story/plain_text_formatter.rb, line 35
def story_started(title, narrative)
@pre_story_pending_count = @pending_scenario_count
@pre_story_successful_count = @successful_scenario_count
@current_story_title = title
@story_failed = false
@story_body_text = ""
@story_head_text = "Story: #{title}\n\n"
narrative.each_line do |line|
@story_head_text += " "
@story_head_text += line
end
end