summaryrefslogtreecommitdiffstats
path: root/spec/unit
diff options
context:
space:
mode:
authorLuke Kanies <luke@puppetlabs.com>2011-07-05 12:28:44 -0700
committerLuke Kanies <luke@puppetlabs.com>2011-07-15 11:52:36 -0700
commit540377b526424e7ef9b2c06460d43af2b780a4af (patch)
treeaeb0bf64ab8d4ffbfe8d694625c8901ffd66d110 /spec/unit
parentbaf32de1dcda02f7da8b2926abee7f46d0d47fe1 (diff)
downloadpuppet-540377b526424e7ef9b2c06460d43af2b780a4af.tar.gz
puppet-540377b526424e7ef9b2c06460d43af2b780a4af.tar.xz
puppet-540377b526424e7ef9b2c06460d43af2b780a4af.zip
Removing an unnecessary stub in the Scope tests
Signed-off-by: Luke Kanies <luke@puppetlabs.com> Reviewed-by: Nick Lewis <nick@puppetlabs.com>
Diffstat (limited to 'spec/unit')
-rwxr-xr-xspec/unit/parser/functions_spec.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/unit/parser/functions_spec.rb b/spec/unit/parser/functions_spec.rb
index 8240a184c..7eb6f299b 100755
--- a/spec/unit/parser/functions_spec.rb
+++ b/spec/unit/parser/functions_spec.rb
@@ -20,13 +20,17 @@ describe Puppet::Parser::Functions do
end
it "should have a method for returning an environment-specific module" do
- Puppet::Parser::Functions.environment_module("myenv").should be_instance_of(Module)
+ Puppet::Parser::Functions.environment_module(Puppet::Node::Environment.new("myenv")).should be_instance_of(Module)
end
it "should use the current default environment if no environment is provided" do
Puppet::Parser::Functions.environment_module.should be_instance_of(Module)
end
+ it "should be able to retrieve environment modules asked for by name rather than instance" do
+ Puppet::Parser::Functions.environment_module(Puppet::Node::Environment.new("myenv")).should equal(Puppet::Parser::Functions.environment_module("myenv"))
+ end
+
describe "when calling newfunction" do
before do
@module = Module.new