Sha256: ae2d8e41c72210ceb3532e42125ccdecd063d4abbeebb63ec57d6e9a0f05eb95
Contents?: true
Size: 765 Bytes
Versions: 4
Compression:
Stored size: 765 Bytes
Contents
#! /usr/bin/env ruby -S rspec require 'spec_helper' require 'puppet/indirector/certificate/file' describe Puppet::SSL::Certificate::File do it "should have documentation" do Puppet::SSL::Certificate::File.doc.should be_instance_of(String) end it "should use the :certdir as the collection directory" do Puppet[:certdir] = File.expand_path("/cert/dir") Puppet::SSL::Certificate::File.collection_directory.should == 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 file.path("whatever").should == Puppet[:localcacert] end end
Version data entries
4 entries across 4 versions & 1 rubygems