Signed-off-by: Luke Kanies <[email protected]>
---
Local-branch: refactor/master/8232-array_indexers_on_scope
 spec/unit/parser/functions_spec.rb |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/spec/unit/parser/functions_spec.rb 
b/spec/unit/parser/functions_spec.rb
index 8240a18..7eb6f29 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
-- 
1.7.3.1

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to