Sha256: bbf69d25c6acea6ea66cb66e38b385d6af6b91ec206f0c917ee933239ef90327

Contents?: true

Size: 1.45 KB

Versions: 11

Compression:

Stored size: 1.45 KB

Contents

Feature: Tag modeling

  Tag models represent a tag portion of a feature. They expose several attributes of the tag that they represent.


  Background:
    Given the following gherkin:
      """
      @a_tag
      """
    And a tag model based on that gherkin
      """
        @model = CukeModeler::Tag.new(<source_text>)
      """


  Scenario: Modeling a tag's name
    When the tag's name is requested
      """
        @model.name
      """
    Then the model returns "@a_tag"

  Scenario: Modeling a tag's source line
    Given the following gherkin:
      """
      @a_tag
      Feature:
      """
    And a feature model based on that gherkin
      """
        @model = CukeModeler::Feature.new(<source_text>)
      """
    And the tag model of that feature model
      """
        @model = @model.tags.first
      """
    When the tag's source line is requested
      """
        @model.source_line
      """
    Then the model returns "1"

  Scenario: Modeling a tag's source column
    Given the following gherkin:
      """
      @a_tag
      Feature:
      """
    And a feature model based on that gherkin
      """
        @model = CukeModeler::Feature.new(<source_text>)
      """
    And the tag model of that feature model
      """
        @model = @model.tags.first
      """
    When the tag's source column is requested
      """
        @model.source_column
      """
    Then the model returns "1"

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
cuke_modeler-3.23.0 testing/cucumber/features/modeling/tag_modeling.feature
cuke_modeler-3.22.0 testing/cucumber/features/modeling/tag_modeling.feature
cuke_modeler-3.21.0 testing/cucumber/features/modeling/tag_modeling.feature
cuke_modeler-3.20.1 testing/cucumber/features/modeling/tag_modeling.feature
cuke_modeler-3.20.0 testing/cucumber/features/modeling/tag_modeling.feature
cuke_modeler-3.19.0 testing/cucumber/features/modeling/tag_modeling.feature
cuke_modeler-3.18.0 testing/cucumber/features/modeling/tag_modeling.feature
cuke_modeler-3.17.0 testing/cucumber/features/modeling/tag_modeling.feature
cuke_modeler-3.16.0 testing/cucumber/features/modeling/tag_modeling.feature
cuke_modeler-3.15.0 testing/cucumber/features/modeling/tag_modeling.feature
cuke_modeler-3.14.0 testing/cucumber/features/modeling/tag_modeling.feature