summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Wolfe <jes5199@gmail.com>2010-03-22 13:32:49 -0700
committerJesse Wolfe <jes5199@gmail.com>2010-03-22 14:52:07 -0700
commitd9920bc4fdad38c7c753bf9cc137c064c33ae7a6 (patch)
tree4b271db96a00382adc428e4101b4bdc703ce7307
parentc6f02f2ee0c9b14f1106b5f6fa8e61cd92cf6f06 (diff)
downloadpuppet-d9920bc4fdad38c7c753bf9cc137c064c33ae7a6.tar.gz
puppet-d9920bc4fdad38c7c753bf9cc137c064c33ae7a6.tar.xz
puppet-d9920bc4fdad38c7c753bf9cc137c064c33ae7a6.zip
Bug #3400 Bad mocks causing failing tests
New code was calling a mocked method that was stubbed too broadly, causing the whole thing to act strangely. I've tightened the existing stub and stubbed the new method call.
-rwxr-xr-xspec/unit/ssl/host.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/unit/ssl/host.rb b/spec/unit/ssl/host.rb
index 6d7249088..f6f06a993 100755
--- a/spec/unit/ssl/host.rb
+++ b/spec/unit/ssl/host.rb
@@ -566,7 +566,9 @@ describe Puppet::SSL::Host do
@store.stub_everything
OpenSSL::X509::Store.stubs(:new).returns @store
- Puppet.settings.stubs(:value).returns "ssl_host_testing"
+ Puppet.settings.stubs(:value).with(:localcacert).returns "ssl_host_testing"
+
+ Puppet::SSL::CertificateRevocationList.stubs(:find).returns(nil)
end
it "should accept a purpose" do