Sha256: 6a2ac22e5be49886d7edc6b8db1c47b9133ed9f48f27d294bfd1fc359f2690c6

Contents?: true

Size: 1.06 KB

Versions: 20

Compression:

Stored size: 1.06 KB

Contents

Feature: Comment modeling

  Comment models represent a comment portion of a feature. They expose several attributes of the comment that they represent.


  Background:
    Given the following gherkin:
      """
      # a comment
      """
    And a comment model based on that gherkin
      """
        @model = CukeModeler::Comment.new(<source_text>)
      """


  Scenario: Modeling a comments text
    When the comment's text is requested
      """
        @model.text
      """
    Then the model returns "# a comment"

  Scenario: Modeling a comment's source line
    Given a feature file with the following gherkin:
      """
      # a comment
      Feature:
      """
    And a feature file model based on that file
      """
        @model = CukeModeler::FeatureFile.new(<file_path>)
      """
    And the comment model of that feature file model
      """
        @model = @model.comments.first
      """
    When the comment'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/comment_modeling.feature
cuke_modeler-3.12.0 testing/cucumber/features/modeling/comment_modeling.feature
cuke_modeler-3.11.0 testing/cucumber/features/modeling/comment_modeling.feature
cuke_modeler-3.10.0 testing/cucumber/features/modeling/comment_modeling.feature
cuke_modeler-3.9.0 testing/cucumber/features/modeling/comment_modeling.feature
cuke_modeler-3.8.0 testing/cucumber/features/modeling/comment_modeling.feature
cuke_modeler-3.7.0 testing/cucumber/features/modeling/comment_modeling.feature
cuke_modeler-3.6.0 testing/cucumber/features/modeling/comment_modeling.feature
cuke_modeler-3.5.0 testing/cucumber/features/modeling/comment_modeling.feature
cuke_modeler-3.4.0 testing/cucumber/features/modeling/comment_modeling.feature
cuke_modeler-3.3.0 testing/cucumber/features/modeling/comment_modeling.feature
cuke_modeler-3.2.0 testing/cucumber/features/modeling/comment_modeling.feature
cuke_modeler-3.1.0 testing/cucumber/features/modeling/comment_modeling.feature
cuke_modeler-3.0.0 testing/cucumber/features/modeling/comment_modeling.feature
cuke_modeler-2.1.0 testing/cucumber/features/modeling/comment_modeling.feature
cuke_modeler-2.0.0 testing/cucumber/features/modeling/comment_modeling.feature
cuke_modeler-1.5.1 testing/cucumber/features/modeling/comment_modeling.feature
cuke_modeler-1.5.0 testing/cucumber/features/modeling/comment_modeling.feature
cuke_modeler-1.4.0 testing/cucumber/features/modeling/comment_modeling.feature
cuke_modeler-1.3.0 testing/cucumber/features/modeling/comment_modeling.feature