testing/cucumber/features/modeling/comment_modeling.feature in cuke_modeler-3.13.0 vs testing/cucumber/features/modeling/comment_modeling.feature in cuke_modeler-3.14.0
- old
+ new
@@ -38,5 +38,25 @@
When the comment's source line is requested
"""
@model.source_line
"""
Then the model returns "1"
+
+ Scenario: Modeling a comment's source column
+ 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 column is requested
+ """
+ @model.source_column
+ """
+ Then the model returns "1"