22 lines
510 B
Ruby
22 lines
510 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
|
|
|
|
When /^I successfully execute the recipe with option (-\w)$/ do |option|
|
|
run_simple "producer #{option} recipe.rb", false
|
|
assert_exit_status 0
|
|
end
|
|
|
|
When /^I execute the recipe interactively$/ do
|
|
run_interactive 'producer recipe.rb'
|
|
end
|