Sha256: 06bf84bd1e89dbbf0734c2bb0b66cb0ed1b0f39c231c6fc1f7d88e3a97595653
Contents?: true
Size: 746 Bytes
Versions: 4
Compression:
Stored size: 746 Bytes
Contents
#! /usr/bin/env ruby -S rspec 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
4 entries across 4 versions & 1 rubygems