producer-core/features/recipe.feature
2013-07-28 18:38:00 +00:00

24 lines
601 B
Gherkin

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"
Scenario: source keyword, requires a recipe file
Given a recipe with:
"""
source 'sourced_recipe'
"""
And a file named "sourced_recipe.rb" with:
"""
puts 'sourced recipe'
"""
When I execute the recipe
Then the exit status must be 0
And the output must contain "sourced recipe"