summaryrefslogtreecommitdiffstats
path: root/spec/unit
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit')
-rwxr-xr-xspec/unit/configurer/downloader.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/unit/configurer/downloader.rb b/spec/unit/configurer/downloader.rb
index bc23574f2..80de8db48 100755
--- a/spec/unit/configurer/downloader.rb
+++ b/spec/unit/configurer/downloader.rb
@@ -82,10 +82,16 @@ describe Puppet::Configurer::Downloader do
end
it "should support providing an 'ignore' parameter" do
- Puppet::Type.type(:file).expects(:new).with { |opts| opts[:ignore] == ".svn" }
+ Puppet::Type.type(:file).expects(:new).with { |opts| opts[:ignore] == [".svn"] }
@dler = Puppet::Configurer::Downloader.new("foo", "path", "source", ".svn")
@dler.file
end
+
+ it "should split the 'ignore' parameter on whitespace" do
+ Puppet::Type.type(:file).expects(:new).with { |opts| opts[:ignore] == %w{.svn CVS} }
+ @dler = Puppet::Configurer::Downloader.new("foo", "path", "source", ".svn CVS")
+ @dler.file
+ end
end
describe "when creating the catalog to do the downloading" do