Sha256: 6894495b77ab2e217d80587beb5f1ad56911ff2227d40dcf0d67e3f6784bbfe6
Contents?: true
Size: 737 Bytes
Versions: 92
Compression:
Stored size: 737 Bytes
Contents
#! /usr/bin/env ruby require 'spec_helper' require 'puppet/indirector/certificate/ca' describe Puppet::SSL::Certificate::Ca do it "should have documentation" do Puppet::SSL::Certificate::Ca.doc.should be_instance_of(String) end it "should use the :signeddir as the collection directory" do Puppet[:signeddir] = File.expand_path("/cert/dir") Puppet::SSL::Certificate::Ca.collection_directory.should == Puppet[:signeddir] end it "should store the ca certificate at the :cacert location" do Puppet.settings.stubs(:use) Puppet[:cacert] = File.expand_path("/ca/cert") file = Puppet::SSL::Certificate::Ca.new file.stubs(:ca?).returns true file.path("whatever").should == Puppet[:cacert] end end
Version data entries
92 entries across 92 versions & 2 rubygems