Use "When I successfully execute" instead of "When I execute", and assert that exit status code was successful in this new step.
10 lines
253 B
Gherkin
10 lines
253 B
Gherkin
Feature: recipe evaluation
|
|
|
|
Scenario: evaluates ruby code in a recipe
|
|
Given a recipe with:
|
|
"""
|
|
puts 'hello from recipe'
|
|
"""
|
|
When I successfully execute the recipe
|
|
And the output must contain exactly "hello from recipe\n"
|