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