Sha256: c505c0c5cdafeb49ba5b7b191510ef025165953ddbe586363f6433d6c69fac00

Contents?: true

Size: 1.22 KB

Versions: 4

Compression:

Stored size: 1.22 KB

Contents

Feature: Gherkin Steps parser
  In order to save time and make my features clearer
  As a Cucumber developer
  I want a steps parser to make writing compound steps easier

  Background: 
    Given a "en", "ruby" "steps" parser

  Scenario: Parsing steps
    Given the following text is parsed:
      """
      Given a one step
      And a two step
        \"\"\"
        Here is a multiline string
        That follows a step
        With an argument #{arg}
        \"\"\"
      And a one two three step
      When another step
      Then there should be a table
        | one | two | three  |
        | foo | bar | #{arg} |
      """
    Then there should be no parse errors

  Scenario: Trying to parse a full feature with the step parser
    Given the following text is parsed:
      """
      Feature: A Feature
        Scenario: Yes, there is one
          Given I have a step
          When I execute this step
          Then something should happen
      """
    Then there should be parse errors on lines 1 and 2

  Scenario: Tags
    Given the following text is parsed:
      """
      @a_tag
      Given a step
      When I trip
      Then I should sign up for dancing lessons
      """
    Then there should be a parse error on line 1

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gherkin-1.0.2-i386-mswin32 features/steps_parser.feature
gherkin-1.0.2-i386-mingw32 features/steps_parser.feature
gherkin-1.0.2-java features/steps_parser.feature
gherkin-1.0.2 features/steps_parser.feature