summaryrefslogtreecommitdiffstats
path: root/spec/unit/indirector/certificate_revocation_list/file_spec.rb
blob: f4b8c36d35aa3ccfff4ed4cdd13fae24e9b23670 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env rspec
#
#  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