Flowdock
method

process_line

Importance_0
RSpec latest stable (1.3.1) - 0 notes - Class: Spec::Story::Runner::StoryParser

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (1.1.12) is shown here.

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