diff options
author | Luke Kanies <luke@madstop.com> | 2009-02-17 18:24:28 -0600 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2009-02-18 22:38:45 -0600 |
commit | 2b4469d1c881065587a28924c702cefbf46d098d (patch) | |
tree | c4398925ce51d5727f51da2f81134defba36f1c7 /spec/unit/node/environment.rb | |
parent | 94de52657c0cfff9bed312cffe78f9b59b9081d2 (diff) | |
download | puppet-2b4469d1c881065587a28924c702cefbf46d098d.tar.gz puppet-2b4469d1c881065587a28924c702cefbf46d098d.tar.xz puppet-2b4469d1c881065587a28924c702cefbf46d098d.zip |
Environments now use their own modulepath method.
They were previously still using just the variable itself.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/unit/node/environment.rb')
-rwxr-xr-x | spec/unit/node/environment.rb | 6 |
1 files changed, 3 insertions, 3 deletions
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' |