Sha256: 63f28973ee92d809887403c8fed5850f3b9f9d07b3e982a9e0186cd3f071763d

Contents?: true

Size: 1.41 KB

Versions: 20

Compression:

Stored size: 1.41 KB

Contents

Feature: Doc string modeling

  Doc string models represent the doc string argument to a step. They expose several attributes of the doc string that they represent.


  Background:
    Given the following gherkin:
      """
      \"\"\" type foo
      content bar
      \"\"\"
      """
    And a doc string model based on that gherkin
      """
        @model = CukeModeler::DocString.new(<source_text>)
      """


  Scenario: Modeling a doc string's content type
    When the doc string's name is requested
      """
        @model.content_type
      """
    Then the model returns "type foo"

  Scenario: Modeling a doc string's content
    When the doc string's content is requested
      """
        @model.content
      """
    Then the model returns
      """
      content bar
      """

  Scenario: Modeling a doc string's source line
    Given the following gherkin:
      """
      Feature:

        Scenario:
          * a step
            \"\"\"
            foo
            \"\"\"
      """
    And a feature model based on that gherkin
      """
        @model = CukeModeler::Feature.new(<source_text>)
      """
    And the doc string model inside of that feature model
      """
        @model = @model.tests.first.steps.first.block
      """
    When the doc string's source line is requested
      """
        @model.source_line
      """
    Then the model returns "5"

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
cuke_modeler-3.13.0 testing/cucumber/features/modeling/doc_string_modeling.feature
cuke_modeler-3.12.0 testing/cucumber/features/modeling/doc_string_modeling.feature
cuke_modeler-3.11.0 testing/cucumber/features/modeling/doc_string_modeling.feature
cuke_modeler-3.10.0 testing/cucumber/features/modeling/doc_string_modeling.feature
cuke_modeler-3.9.0 testing/cucumber/features/modeling/doc_string_modeling.feature
cuke_modeler-3.8.0 testing/cucumber/features/modeling/doc_string_modeling.feature
cuke_modeler-3.7.0 testing/cucumber/features/modeling/doc_string_modeling.feature
cuke_modeler-3.6.0 testing/cucumber/features/modeling/doc_string_modeling.feature
cuke_modeler-3.5.0 testing/cucumber/features/modeling/doc_string_modeling.feature
cuke_modeler-3.4.0 testing/cucumber/features/modeling/doc_string_modeling.feature
cuke_modeler-3.3.0 testing/cucumber/features/modeling/doc_string_modeling.feature
cuke_modeler-3.2.0 testing/cucumber/features/modeling/doc_string_modeling.feature
cuke_modeler-3.1.0 testing/cucumber/features/modeling/doc_string_modeling.feature
cuke_modeler-3.0.0 testing/cucumber/features/modeling/doc_string_modeling.feature
cuke_modeler-2.1.0 testing/cucumber/features/modeling/doc_string_modeling.feature
cuke_modeler-2.0.0 testing/cucumber/features/modeling/doc_string_modeling.feature
cuke_modeler-1.5.1 testing/cucumber/features/modeling/doc_string_modeling.feature
cuke_modeler-1.5.0 testing/cucumber/features/modeling/doc_string_modeling.feature
cuke_modeler-1.4.0 testing/cucumber/features/modeling/doc_string_modeling.feature
cuke_modeler-1.3.0 testing/cucumber/features/modeling/doc_string_modeling.feature