Sha256: cdbdaec6c51a3b00d9a612ec39e5af04cc10be3edd07c6c56b0ac0a2f1610a9f

Contents?: true

Size: 1.87 KB

Versions: 5

Compression:

Stored size: 1.87 KB

Contents

Feature: Outline output

  An outline model's string output is a Gherkin representation of itself and its most relevant attribute for
  inspection is the name of the outline that it models.


  Background:
    Given the following gherkin:
      """
      @tag1@tag2
      @tag3
      Scenario Outline: An outline with everything that it could have

      Some description.
      Some more description.

      * a step
      |value|
      * a <value> step
      \"\"\"
        some string
      \"\"\"

      Examples:
      Some description.
      Some more description.
      | value |
      | x     |
      @example_tag

      Examples:
      | value |
      | y     |
      """
    And an outline model based on that gherkin
      """
      @model = CukeModeler::Outline.new(<source_text>)
      """


  Scenario: Stringify an outline model
    When the model is output as a string
      """
      @model.to_s
      """
    Then the following text is provided:
      """
      @tag1 @tag2 @tag3
      Scenario Outline: An outline with everything that it could have

      Some description.
      Some more description.

        * a step
          | value |
        * a <value> step
          \"\"\"
            some string
          \"\"\"

      Examples:

      Some description.
      Some more description.

        | value |
        | x     |

      @example_tag
      Examples:
        | value |
        | y     |
      """
    And the output can be used to make an equivalent model
      """
      CukeModeler::Outline.new(@model.to_s)
      """

  Scenario: Inspect an outline model
    When the model is inspected
      """
      @model.inspect
      """
    Then the following text is provided:
      """
      #<CukeModeler::Outline:<object_id> @name: "An outline with everything that it could have">
      """

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cuke_modeler-3.23.0 testing/cucumber/features/modeling/outline_output.feature
cuke_modeler-3.22.0 testing/cucumber/features/modeling/outline_output.feature
cuke_modeler-3.21.0 testing/cucumber/features/modeling/outline_output.feature
cuke_modeler-3.20.1 testing/cucumber/features/modeling/outline_output.feature
cuke_modeler-3.20.0 testing/cucumber/features/modeling/outline_output.feature