producer-core/features/tasks/condition.feature
Thibault Jouan 33a2b9de5a Refactor producer invocation in cucumber features:
Use "When I successfully execute" instead of "When I execute", and
assert that exit status code was successful in this new step.
2013-09-06 20:10:28 +00:00

14 lines
328 B
Gherkin

Feature: `condition' task keyword
Scenario: prevents task actions application when condition is not met
Given a recipe with:
"""
task :hello do
condition { false }
echo 'evaluated'
end
"""
When I successfully execute the recipe
And the output must not contain "evaluated"