summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-08-28 23:09:52 -0700
committerLuke Kanies <luke@madstop.com>2008-08-28 23:09:52 -0700
commitbd1163a339ff66dbb9a50a1cb13f6320cb056cc3 (patch)
tree73c539efd401a5a1880cc5b74ce2eee94e9c98b3 /spec
parent5da26067cc76ad318359d9287ab1267d7a6c5b0b (diff)
Fixing filesets to allow nil ignore values.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec')
-rwxr-xr-xspec/unit/file_serving/fileset.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/unit/file_serving/fileset.rb b/spec/unit/file_serving/fileset.rb
index 2cd3e83dd..f95271050 100755
--- a/spec/unit/file_serving/fileset.rb
+++ b/spec/unit/file_serving/fileset.rb
@@ -149,6 +149,13 @@ describe Puppet::FileServing::Fileset, " when recursing" do
@fileset.files.sort.should == @files.sort
end
+ it "should function if the :ignore value provided is nil" do
+ mock_dir_structure(@path)
+ @fileset.recurse = true
+ @fileset.ignore = nil
+ lambda { @fileset.files }.should_not raise_error
+ end
+
it "should ignore files that match a single pattern in the ignore list" do
mock_dir_structure(@path)
@fileset.recurse = true