summaryrefslogtreecommitdiffstats
path: root/spec/unit/file_serving/fileset_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/file_serving/fileset_spec.rb')
-rwxr-xr-xspec/unit/file_serving/fileset_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/unit/file_serving/fileset_spec.rb b/spec/unit/file_serving/fileset_spec.rb
index 9a90cff15..1ef9cdc50 100755
--- a/spec/unit/file_serving/fileset_spec.rb
+++ b/spec/unit/file_serving/fileset_spec.rb
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
-require File.dirname(__FILE__) + '/../../spec_helper'
+require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
require 'puppet/file_serving/fileset'
@@ -306,6 +306,7 @@ end
describe Puppet::FileServing::Fileset, "when merging other filesets" do
before do
@paths = %w{/first/path /second/path /third/path}
+ File.stubs(:lstat).returns stub("stat", :directory? => false)
@filesets = @paths.collect do |path|
File.stubs(:lstat).with(path).returns stub("stat", :directory? => true)