summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Lathrop <paul@tertiusfamily.net>2008-05-21 16:43:42 -0700
committerJames Turnbull <james@lovedthanlost.net>2008-05-23 03:54:30 +1000
commitc0f78b41e6c188f2046fd3e9c662ee812ef224ab (patch)
treed788f7771f2212dd29034a0935b32dbe8a0d7027
parent3f35afa802ecc87e34b44f5b23d76621ab145722 (diff)
downloadpuppet-c0f78b41e6c188f2046fd3e9c662ee812ef224ab.tar.gz
puppet-c0f78b41e6c188f2046fd3e9c662ee812ef224ab.tar.xz
puppet-c0f78b41e6c188f2046fd3e9c662ee812ef224ab.zip
Fixed a bug in my tests which caused them to fail when run against the master branch.
-rwxr-xr-xspec/unit/util/storage.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/unit/util/storage.rb b/spec/unit/util/storage.rb
index 55d1d1f61..90625bd71 100755
--- a/spec/unit/util/storage.rb
+++ b/spec/unit/util/storage.rb
@@ -85,6 +85,10 @@ describe Puppet::Util::Storage do
end
describe "when loading from the state file" do
+ before(:each) do
+ Puppet.settings.stubs(:use).returns(true)
+ end
+
describe "when the state file/directory does not exist" do
before(:each) do
transient = Tempfile.new('storage_test')