summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorLuke Kanies <luke@puppetlabs.com>2010-04-13 08:51:17 -0700
committerLuke Kanies <luke@puppetlabs.com>2010-04-13 08:51:17 -0700
commitda00f682ce0d1778183f9cf7dbe6d2e133b11841 (patch)
tree08822d84323dcb1a659ef7badd78f7526bb1681a /spec
parent9792915481ed757c56768f8f5e4fd100217b7232 (diff)
downloadpuppet-da00f682ce0d1778183f9cf7dbe6d2e133b11841.tar.gz
puppet-da00f682ce0d1778183f9cf7dbe6d2e133b11841.tar.xz
puppet-da00f682ce0d1778183f9cf7dbe6d2e133b11841.zip
Making a Puppet::Module test more resilient
It would fail if a directory unexpectedly existed. Signed-off-by: Luke Kanies <luke@puppetlabs.com>
Diffstat (limited to 'spec')
-rwxr-xr-xspec/unit/module.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/unit/module.rb b/spec/unit/module.rb
index e6623befd..85cc84116 100755
--- a/spec/unit/module.rb
+++ b/spec/unit/module.rb
@@ -405,6 +405,7 @@ describe Puppet::Module, "when finding matching manifests" do
it "should return all manifests matching the glob pattern" do
Dir.expects(:glob).with("/a/manifests/yay/*.pp").returns(%w{foo bar})
+ FileTest.stubs(:directory?).returns false
@mod.match_manifests("yay/*.pp").should == %w{foo bar}
end