summaryrefslogtreecommitdiffstats
path: root/spec/unit/node
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/node')
-rwxr-xr-xspec/unit/node/environment.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/unit/node/environment.rb b/spec/unit/node/environment.rb
index f8b2dea7f..18747d1b7 100755
--- a/spec/unit/node/environment.rb
+++ b/spec/unit/node/environment.rb
@@ -105,9 +105,10 @@ describe Puppet::Node::Environment do
module_path = %w{/one /two}.join(File::PATH_SEPARATOR)
env.expects(:modulepath).returns module_path
- Puppet::Module.expects(:each_module).with(module_path).multiple_yields("mod1", "mod2")
+ mods = [Puppet::Module.new('mod1'), Puppet::Module.new("mod2")]
+ Puppet::Module.expects(:each_module).with(module_path).multiple_yields(*mods)
- env.modules.should == %w{mod1 mod2}
+ env.modules.should == mods
end
it "should be able to return an individual module that exists in its module path" do