Support YAML templates
This commit is contained in:
1
spec/fixtures/templates/basic_yaml.yaml
vendored
Normal file
1
spec/fixtures/templates/basic_yaml.yaml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
foo: bar
|
@@ -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' }
|
||||
|
||||
|
Reference in New Issue
Block a user