blob: 005b5aa1debc1147eaa8147dd14c9b9542d48e85 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/usr/bin/env rspec
require 'spec_helper'
require 'puppet/indirector/certificate_revocation_list/ca'
describe Puppet::SSL::CertificateRevocationList::Ca do
it "should have documentation" do
Puppet::SSL::CertificateRevocationList::Ca.doc.should be_instance_of(String)
end
it "should use the :cacrl setting as the crl location" do
Puppet.settings.stubs(:value).returns "whatever"
Puppet.settings.stubs(:use)
Puppet.settings.stubs(:value).with(:cacrl).returns "/request/dir"
Puppet::SSL::CertificateRevocationList::Ca.new.path("whatever").should == "/request/dir"
end
end
|