Use "When I successfully execute" instead of "When I execute", and assert that exit status code was successful in this new step.
12 lines
311 B
Gherkin
12 lines
311 B
Gherkin
Feature: `target' recipe keyword
|
|
|
|
Scenario: registers the target host on which tasks should be applied
|
|
Given a recipe with:
|
|
"""
|
|
target 'some_host.example'
|
|
|
|
puts env.target
|
|
"""
|
|
When I successfully execute the recipe
|
|
And the output must contain exactly "some_host.example\n"
|