Implement source keyword feature for recipes
This commit is contained in:
@@ -8,3 +8,16 @@ Feature: recipe evaluation
|
||||
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"
|
||||
|
Reference in New Issue
Block a user