blob: cd047410c761898c96641842859414504ed8905c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/usr/bin/env ruby
#
# Created by Luke Kanies on 2008-3-7.
# Copyright (c) 2007. All rights reserved.
require 'spec_helper'
require 'puppet/indirector/certificate_revocation_list/file'
describe Puppet::SSL::CertificateRevocationList::File do
it "should have documentation" do
Puppet::SSL::CertificateRevocationList::File.doc.should be_instance_of(String)
end
it "should always store the file to :hostcrl location" do
Puppet.settings.expects(:value).with(:hostcrl).returns "/host/crl"
Puppet.settings.stubs(:use)
Puppet::SSL::CertificateRevocationList::File.file_location.should == "/host/crl"
end
end
|