Use "When I successfully execute" instead of "When I execute", and assert that exit status code was successful in this new step.
13 lines
272 B
Ruby
13 lines
272 B
Ruby
Given(/^a recipe with:$/) do |recipe_body|
|
|
write_file 'recipe.rb', recipe_body
|
|
end
|
|
|
|
When(/^I execute the recipe$/) do
|
|
run_simple('producer recipe.rb', false)
|
|
end
|
|
|
|
When(/^I successfully execute the recipe$/) do
|
|
step 'I execute the recipe'
|
|
assert_exit_status(0)
|
|
end
|