Flowdock
method

process_line

Importance_0
1.1.4 - Show latest stable - 0 notes - Class: Spec::Story::Runner::StoryParser
process_line(line) public

No documentation

This method has no description. You can help the RSpec community by adding new notes.

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
Register or log in to add new notes.