Implement recipe evaluation feature
This commit is contained in:
10
features/recipe.feature
Normal file
10
features/recipe.feature
Normal file
@@ -0,0 +1,10 @@
|
||||
Feature: recipe evaluation
|
||||
|
||||
Scenario: evaluates ruby code in a recipe
|
||||
Given a recipe with:
|
||||
"""
|
||||
puts 'hello from recipe'
|
||||
"""
|
||||
When I execute the recipe
|
||||
Then the exit status must be 0
|
||||
And the output must contain "hello from recipe"
|
7
features/steps/recipe_steps.rb
Normal file
7
features/steps/recipe_steps.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
Given(/^a recipe with:$/) do |recipe_body|
|
||||
write_file 'recipe.rb', recipe_body
|
||||
end
|
||||
|
||||
When(/^I execute the recipe$/) do
|
||||
run_simple('producer localhost recipe.rb', false)
|
||||
end
|
Reference in New Issue
Block a user