From 2b4469d1c881065587a28924c702cefbf46d098d Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Tue, 17 Feb 2009 18:24:28 -0600 Subject: Environments now use their own modulepath method. They were previously still using just the variable itself. Signed-off-by: Luke Kanies --- spec/unit/node/environment.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'spec/unit/node') diff --git a/spec/unit/node/environment.rb b/spec/unit/node/environment.rb index 855fd06ba..20889f071 100755 --- a/spec/unit/node/environment.rb +++ b/spec/unit/node/environment.rb @@ -83,7 +83,7 @@ describe Puppet::Node::Environment do it "should return each module from the environment-specific module path when asked for its modules" do env = Puppet::Node::Environment.new("testing") module_path = %w{/one /two}.join(File::PATH_SEPARATOR) - env.expects(:[]).with(:modulepath).returns module_path + env.expects(:modulepath).returns module_path Puppet::Module.expects(:each_module).with(module_path).multiple_yields("mod1", "mod2") @@ -93,7 +93,7 @@ describe Puppet::Node::Environment do it "should be able to return an individual module by matching the module name" do env = Puppet::Node::Environment.new("testing") module_path = %w{/one /two}.join(File::PATH_SEPARATOR) - env.expects(:[]).with(:modulepath).returns module_path + env.expects(:modulepath).returns module_path one = stub 'one', :name => 'one' two = stub 'two', :name => 'two' @@ -105,7 +105,7 @@ describe Puppet::Node::Environment do it "should return nil if asked for a module that is not in its path" do env = Puppet::Node::Environment.new("testing") module_path = %w{/one /two}.join(File::PATH_SEPARATOR) - env.expects(:[]).with(:modulepath).returns module_path + env.expects(:modulepath).returns module_path one = stub 'one', :name => 'one' two = stub 'two', :name => 'two' -- cgit