diff options
Diffstat (limited to 'spec/unit/file_serving/fileset.rb')
-rwxr-xr-x | spec/unit/file_serving/fileset.rb | 7 |
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 |