summaryrefslogtreecommitdiff
path: root/spec/lib
diff options
context:
space:
mode:
authorTP Honey <tphoney@users.noreply.github.com>2015-05-05 14:35:48 +0100
committerTP Honey <tphoney@users.noreply.github.com>2015-05-05 14:35:48 +0100
commit7181e4ebcaf59cb16e7166aa254cbb637590423a (patch)
tree3b45b6b6e4ef0a249096ed827d2599e80100ec57 /spec/lib
parentc7a23b226d5293e24cc52229c6162425ad473b6f (diff)
parentd4f3d57f1678ae03a58a17181f863c44c248f09b (diff)
Merge pull request #443 from DavidS/prep-work-for-new-specs
Prep work for new specs
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