summaryrefslogtreecommitdiff
path: root/spec/lib
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib')
-rwxr-xr-xspec/lib/puppet_spec/compiler.rb1
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