diff options
| author | Luke Kanies <luke@madstop.com> | 2009-05-06 12:00:23 -0700 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2009-05-15 09:58:26 +1000 |
| commit | 4f3a67f21568394dd89a969bd373cbbd59784f7e (patch) | |
| tree | a3d7c60a5be395c2cbc6fce430c29229897e7ad5 /spec/integration | |
| parent | 2d580c257e6d8aa0821fd443e8b817027407212c (diff) | |
| download | puppet-4f3a67f21568394dd89a969bd373cbbd59784f7e.tar.gz puppet-4f3a67f21568394dd89a969bd373cbbd59784f7e.tar.xz puppet-4f3a67f21568394dd89a969bd373cbbd59784f7e.zip | |
Fixing #2221 - pluginsignore should work again
We weren't splitting on whitespace, which is necessary
since the settings don't support arrays but files
expect them.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/integration')
| -rwxr-xr-x | spec/integration/configurer.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/integration/configurer.rb b/spec/integration/configurer.rb new file mode 100755 index 000000000..3bea0ead4 --- /dev/null +++ b/spec/integration/configurer.rb @@ -0,0 +1,18 @@ +#!/usr/bin/env ruby + +require File.dirname(__FILE__) + '/../spec_helper' + +require 'puppet/configurer' + +describe Puppet::Configurer do + describe "when downloading plugins" do + it "should use the :pluginsignore setting, split on whitespace, for ignoring remote files" do + resource = Puppet::Type.type(:notify).new :name => "yay" + Puppet::Type.type(:file).expects(:new).with { |args| args[:ignore] == Puppet[:pluginsignore].split(/\s+/) }.returns resource + + configurer = Puppet::Configurer.new + configurer.stubs(:download_plugins?).returns true + configurer.download_plugins + end + end +end |
