summaryrefslogtreecommitdiffstats
path: root/spec/unit/parser
diff options
context:
space:
mode:
authorMarkus Roberts <Markus@reality.com>2010-06-24 11:59:27 -0700
committerMarkus Roberts <Markus@reality.com>2010-06-24 15:59:11 -0700
commitdb44a32695ae2b1249461f187b4b3321c24cfd84 (patch)
treed5f178f1dc94b5551828546cff02760457f76420 /spec/unit/parser
parent3bd6f110852fadbc1ef707f0705dc3bc969ce8e4 (diff)
downloadpuppet-db44a32695ae2b1249461f187b4b3321c24cfd84.tar.gz
puppet-db44a32695ae2b1249461f187b4b3321c24cfd84.tar.xz
puppet-db44a32695ae2b1249461f187b4b3321c24cfd84.zip
Tweak for fix for #1175 to fix test failures
Tests that weren't managing the environment but were still expecting to have functions defined in it were appalled when the functions/environments binding actually started working. This patch fixes those tests.
Diffstat (limited to 'spec/unit/parser')
-rwxr-xr-xspec/unit/parser/scope_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/unit/parser/scope_spec.rb b/spec/unit/parser/scope_spec.rb
index b665ebdb8..37cf4bd8d 100755
--- a/spec/unit/parser/scope_spec.rb
+++ b/spec/unit/parser/scope_spec.rb
@@ -70,6 +70,8 @@ describe Puppet::Parser::Scope do
mod = Module.new
Puppet::Parser::Functions.expects(:environment_module).with(Puppet::Node::Environment.root).returns(mod)
+ Puppet::Parser::Functions.expects(:environment_module).with(nil).returns mod
+
Puppet::Parser::Scope.new().metaclass.ancestors.should be_include(mod)
end
end