diff options
author | David Schmitt <david.schmitt@puppetlabs.com> | 2015-04-15 16:46:09 -0700 |
---|---|---|
committer | David Schmitt <david.schmitt@puppetlabs.com> | 2015-05-05 13:27:46 +0100 |
commit | 29f09e2181a56ec801b39e56bd28119709495dd9 (patch) | |
tree | e6f78b98f1486c57ddd889febd72dd2d18b29d40 /spec/lib | |
parent | c0cf14e77405ba3a0b7ae471d1ee1c249c7d4da8 (diff) |
spec_helper: set parser config if requested
Diffstat (limited to 'spec/lib')
-rwxr-xr-x | spec/lib/puppet_spec/compiler.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/lib/puppet_spec/compiler.rb b/spec/lib/puppet_spec/compiler.rb index 2f0ae4d..1f322ca 100755 --- a/spec/lib/puppet_spec/compiler.rb +++ b/spec/lib/puppet_spec/compiler.rb @@ -2,6 +2,7 @@ module PuppetSpec::Compiler def compile_to_catalog(string, node = Puppet::Node.new('foonode')) Puppet[:code] = string + Puppet[:parser] = 'future' if ENV['FUTURE_PARSER'] == 'yes' Puppet::Parser::Compiler.compile(node) end |