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

@@ -13,6 +13,14 @@ module Producer::Core
expect(template.render).to eq "basic template\n"
end
context 'yaml templates' do
let(:path) { 'basic_yaml' }
it 'renders yaml templates' do
expect(template.render).to eq({ 'foo' => 'bar' })
end
end
context 'when variables are given' do
let(:path) { 'variables' }