From 8c9b04d807b34ade704da3584b72d39bb129aa75 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Mon, 28 Apr 2008 17:52:02 -0500 Subject: I think I've now got the Webrick SSL support working. Now I just need to get xmlrpc working alongside REST in both mongrel and webrick. --- spec/unit/ssl/certificate_authority.rb | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'spec/unit/ssl') diff --git a/spec/unit/ssl/certificate_authority.rb b/spec/unit/ssl/certificate_authority.rb index 09aaeabcf..424f47512 100755 --- a/spec/unit/ssl/certificate_authority.rb +++ b/spec/unit/ssl/certificate_authority.rb @@ -72,16 +72,16 @@ describe Puppet::SSL::CertificateAuthority do end describe "and the CRL is disabled" do - it "should return nil when the :cacrl is false" do - Puppet.settings.stubs(:value).with(:cacrl).returns false + it "should return nil when the :crl is false" do + Puppet.settings.stubs(:value).with(:crl).returns false Puppet::SSL::CertificateRevocationList.expects(:new).never @ca.crl.should be_nil end - it "should return nil when the :cacrl is 'false'" do - Puppet.settings.stubs(:value).with(:cacrl).returns 'false' + it "should return nil when the :crl is 'false'" do + Puppet.settings.stubs(:value).with(:crl).returns false Puppet::SSL::CertificateRevocationList.expects(:new).never @@ -105,13 +105,14 @@ describe Puppet::SSL::CertificateAuthority do @ca.crl.should equal(crl) end - it "should create and generate a new CRL instance of no CRL can be found" do + it "should create, generate, and save a new CRL instance of no CRL can be found" do crl = mock 'crl' Puppet::SSL::CertificateRevocationList.expects(:find).returns nil Puppet::SSL::CertificateRevocationList.expects(:new).returns crl crl.expects(:generate).with(@ca.host.certificate.content) + crl.expects(:save) @ca.crl.should equal(crl) end -- cgit