Sha256: e3be538aaf3f9ebedfa548a4d72a7ac8c2e5b8c0a2245e57811712096b3db59b

Contents?: true

Size: 995 Bytes

Versions: 9

Compression:

Stored size: 995 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

9 entries across 9 versions & 1 rubygems

Version Path
cuke_modeler-1.2.1 testing/cucumber/features/modeling/tag_modeling.feature
cuke_modeler-1.2.0 testing/cucumber/features/modeling/tag_modeling.feature
cuke_modeler-1.1.1 testing/cucumber/features/modeling/tag_modeling.feature
cuke_modeler-1.1.0 testing/cucumber/features/modeling/tag_modeling.feature
cuke_modeler-1.0.4 testing/cucumber/features/modeling/tag_modeling.feature
cuke_modeler-1.0.3 testing/cucumber/features/modeling/tag_modeling.feature
cuke_modeler-1.0.2 testing/cucumber/features/modeling/tag_modeling.feature
cuke_modeler-1.0.1 features/modeling/tag_modeling.feature
cuke_modeler-1.0.0 features/modeling/tag_modeling.feature