diff options
author | Markus Roberts <Markus@reality.com> | 2010-07-07 23:56:47 -0700 |
---|---|---|
committer | Markus Roberts <Markus@reality.com> | 2010-07-07 23:56:47 -0700 |
commit | 62dbae53f89e8d9597081c7b7c0a20b419e4737a (patch) | |
tree | ebec66cb5b51a8ce4be451dc9bcfa13b43fe2a54 /spec/unit | |
parent | a5fc3643105754f5b81f56a787553548537c529c (diff) | |
download | puppet-62dbae53f89e8d9597081c7b7c0a20b419e4737a.tar.gz puppet-62dbae53f89e8d9597081c7b7c0a20b419e4737a.tar.xz puppet-62dbae53f89e8d9597081c7b7c0a20b419e4737a.zip |
Fix for #2807 Puppet settings available as variables
This is Luke's patch plus a change to fix a test that it broke. It creates
a new sub-scope off the top scope, called "settings" and adds each of the
environment's settings to it as variables, thus satisfying the ticket while
taking us one step further from being able to implement futures. *sigh*
Diffstat (limited to 'spec/unit')
-rwxr-xr-x | spec/unit/parser/compiler_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/unit/parser/compiler_spec.rb b/spec/unit/parser/compiler_spec.rb index 67bfc3749..31dc196ef 100755 --- a/spec/unit/parser/compiler_spec.rb +++ b/spec/unit/parser/compiler_spec.rb @@ -704,6 +704,7 @@ describe Puppet::Parser::Compiler do scope = stub 'scope', :source => "mysource" @compiler.topscope.expects(:class_scope).with(node_class).returns(scope) node_resource.stubs(:evaluate) + @compiler.stubs :create_settings_scope @compiler.compile |