summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorJesse Wolfe <jes5199@gmail.com>2010-12-10 14:40:43 -0800
committerJesse Wolfe <jes5199@gmail.com>2010-12-10 14:42:31 -0800
commit54a1025da96aed794e64080e58a7473afccef5b2 (patch)
treec57aef9866dfcc8f4c5b31b596e8c4f0ef7a3493 /spec
parent1d3192e6d7242c748477bb560a65fb7148f4df78 (diff)
downloadpuppet-54a1025da96aed794e64080e58a7473afccef5b2.tar.gz
puppet-54a1025da96aed794e64080e58a7473afccef5b2.tar.xz
puppet-54a1025da96aed794e64080e58a7473afccef5b2.zip
maint: missing stub
This missing stub was raising an exception that, in versions of Mocha less than 0.9.10, was coincidentally causing the method under test to behave as expected. Paired-With: Nick Lewis <nick@puppetlabs.com>
Diffstat (limited to 'spec')
-rwxr-xr-xspec/unit/file_serving/fileset_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/unit/file_serving/fileset_spec.rb b/spec/unit/file_serving/fileset_spec.rb
index 9a90cff15..ecc77812c 100755
--- a/spec/unit/file_serving/fileset_spec.rb
+++ b/spec/unit/file_serving/fileset_spec.rb
@@ -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)