Sha256: fd33a3e526a547f7c3d8aa295e2af768ecbb79e47ba2f3192e723a6dc4f4402c

Contents?: true

Size: 937 Bytes

Versions: 5

Compression:

Stored size: 937 Bytes

Contents

Feature: Example output

  An example model's string output is a Gherkin representation of itself.


  Scenario: Outputting an example model
    Given the following gherkin:
      """
      @tag1
      @tag2 @tag3
      Examples: an example with everything that it could have

      Some description.
      Some more description.

      |param1|param2|
      |value1|value2|
      |value3|value4|
      """
    And an example model based on that gherkin
      """
        @model = CukeModeler::Example.new(<source_text>)
      """
    When the model is output as a string
      """
        @model.to_s
      """
    Then the following text is provided:
      """
      @tag1 @tag2 @tag3
      Examples: an example with everything that it could have

      Some description.
      Some more description.

        | param1 | param2 |
        | value1 | value2 |
        | value3 | value4 |
      """

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cuke_modeler-1.0.4 testing/cucumber/features/modeling/example_output.feature
cuke_modeler-1.0.3 testing/cucumber/features/modeling/example_output.feature
cuke_modeler-1.0.2 testing/cucumber/features/modeling/example_output.feature
cuke_modeler-1.0.1 features/modeling/example_output.feature
cuke_modeler-1.0.0 features/modeling/example_output.feature