diff options
| author | Luke Kanies <luke@madstop.com> | 2008-08-27 21:53:00 -0700 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-08-27 21:53:00 -0700 |
| commit | 7c68fdb46802dbd3a57f5f7be3333ed6feacad45 (patch) | |
| tree | 6e385b1a0fee71b86957e57f049a788ba8ee9b6a /spec/integration/file_serving/fileset.rb | |
| parent | ac419872e273dc31635f042bb1a23c7785dc227a (diff) | |
| download | puppet-7c68fdb46802dbd3a57f5f7be3333ed6feacad45.tar.gz puppet-7c68fdb46802dbd3a57f5f7be3333ed6feacad45.tar.xz puppet-7c68fdb46802dbd3a57f5f7be3333ed6feacad45.zip | |
Fixing FileServing::Base so that it can recurse on a single file.
It was throwing exceptions if you tried to use it on a file
instead of a directory.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/integration/file_serving/fileset.rb')
| -rwxr-xr-x | spec/integration/file_serving/fileset.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/integration/file_serving/fileset.rb b/spec/integration/file_serving/fileset.rb new file mode 100755 index 000000000..80bf0f376 --- /dev/null +++ b/spec/integration/file_serving/fileset.rb @@ -0,0 +1,14 @@ +#!/usr/bin/env ruby + +require File.dirname(__FILE__) + '/../../spec_helper' + +require 'puppet/file_serving/fileset' + +describe Puppet::FileServing::Fileset do + it "should be able to recurse on a single file" do + @path = Tempfile.new("fileset_integration") + + fileset = Puppet::FileServing::Fileset.new(@path.path) + lambda { fileset.files }.should_not raise_error + end +end |
