Sha256: 686dc8927b812c1b06fb91c8da7e4ef341ebdd72054ead2ca5fc993f896cdfc8

Contents?: true

Size: 992 Bytes

Versions: 20

Compression:

Stored size: 992 Bytes

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"

Version data entries

20 entries across 20 versions & 1 rubygems

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