Support YAML templates

This commit is contained in:
Thibault Jouan
2014-10-10 18:56:26 +00:00
parent 82879b56b4
commit 9780cdf220
5 changed files with 46 additions and 5 deletions

View File

@@ -35,3 +35,15 @@ Feature: `template' task keyword
"""
When I execute the recipe
Then the output must contain "basic template"
Scenario: parses a yaml file
Given a file named "templates/basic.yaml" with:
"""
foo: bar
"""
And a recipe with:
"""
task(:echo_template) { echo template('basic')['foo'] }
"""
When I execute the recipe
Then the output must match /^bar$/