method
process_line
1.1.4 -
Show latest stable
-
0 notes -
Class: Spec::Story::Runner::StoryParser
- 1.1.4 (0)
- 1.1.12 (0)
- 1.2.0
- 1.2.8
- 1.3.0
- 1.3.1
- What's this?
process_line(line)
public
Hide source
# File lib/spec/story/runner/story_parser.rb, line 26 def process_line(line) line.strip! case 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