summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Wolfe <jes5199@gmail.com>2010-12-10 13:58:41 -0800
committerJesse Wolfe <jes5199@gmail.com>2010-12-10 14:31:32 -0800
commit3d7c8d091d713eee88a4871da52a72fcc9eb98ee (patch)
tree476026856c9f3d90ad0a85955dd5369e42be7820
parent52fba89d3415bdb6e7f10640ac059f295ea7cadf (diff)
downloadpuppet-3d7c8d091d713eee88a4871da52a72fcc9eb98ee.tar.gz
puppet-3d7c8d091d713eee88a4871da52a72fcc9eb98ee.tar.xz
puppet-3d7c8d091d713eee88a4871da52a72fcc9eb98ee.zip
maint: remove Puppet.settings stubs
This test was stubbing Puppet.settings, instead of setting the values directly. Exceptions thrown by trying to read other settings were getting swallowed when running a version of Mocha older than 0.9.10. Paired-With: Nick Lewis <nick@puppetlabs.com>
-rwxr-xr-xspec/unit/indirector/ssl_file_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/unit/indirector/ssl_file_spec.rb b/spec/unit/indirector/ssl_file_spec.rb
index 83145cffc..37098a7a9 100755
--- a/spec/unit/indirector/ssl_file_spec.rb
+++ b/spec/unit/indirector/ssl_file_spec.rb
@@ -18,12 +18,12 @@ describe Puppet::Indirector::SslFile do
end
end
- @setting = :mydir
+ @setting = :certdir
@file_class.store_in @setting
- @path = "/my/directory"
- Puppet.settings.stubs(:value).with(:noop).returns(false)
- Puppet.settings.stubs(:value).with(@setting).returns(@path)
- Puppet.settings.stubs(:value).with(:trace).returns(false)
+ @path = "/tmp/my_directory"
+ Puppet[:noop] = false
+ Puppet[@setting] = @path
+ Puppet[:trace] = false
end
it "should use :main and :ssl upon initialization" do