# File lib/spec/story/runner/story_parser.rb, line 26 def process_line(line) line.strip! case line when /^#/ then @state.comment(line) when /^Story: / then @state.story(line) when /^Scenario: / then @state.scenario(line) when /^Given:? / then @state.given(line) when /^GivenScenario:? / then @state.given_scenario(line) when /^When:? / then @state.event(line) when /^Then:? / then @state.outcome(line) when /^And:? / then @state.one_more_of_the_same(line) else @state.other(line) end end