From d9920bc4fdad38c7c753bf9cc137c064c33ae7a6 Mon Sep 17 00:00:00 2001 From: Jesse Wolfe Date: Mon, 22 Mar 2010 13:32:49 -0700 Subject: 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. --- spec/unit/ssl/host.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit