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