Use "When I successfully execute" instead of "When I execute", and assert that exit status code was successful in this new step.
12 lines
247 B
Gherkin
12 lines
247 B
Gherkin
Feature: `echo' task action
|
|
|
|
Scenario: ouputs text
|
|
Given a recipe with:
|
|
"""
|
|
task :some_task do
|
|
echo 'hello'
|
|
end
|
|
"""
|
|
When I successfully execute the recipe
|
|
And the output must contain exactly "hello\n"
|