testing/cucumber/features/modeling/step_output.feature in cuke_modeler-1.0.4 vs testing/cucumber/features/modeling/step_output.feature in cuke_modeler-1.1.0
- old
+ new
@@ -1,8 +1,9 @@
Feature: Step output
- A step model's string output is a Gherkin representation of itself.
+ A step model's string output is a Gherkin representation of itself. As such, output from a step model can be used as
+ input for the same kind of model.
Scenario: Outputting a step model
Note: Outputting a step that has a doc string is accomplished in the same manner
@@ -24,6 +25,10 @@
Then the following text is provided:
"""
* a step
| value1 |
| value2 |
+ """
+ And the output can be used to make an equivalent model
+ """
+ CukeModeler::Step.new(@model.to_s)
"""