Sha256: 2b239edccd37a21dbf5c0269445f65572ce372e44f8f061c522c19fa3b20add0
Contents?: true
Size: 669 Bytes
Versions: 4
Compression:
Stored size: 669 Bytes
Contents
#! /usr/bin/env ruby -S rspec require 'spec_helper' require 'puppet/indirector/key/ca' describe Puppet::SSL::Key::Ca do it "should have documentation" do Puppet::SSL::Key::Ca.doc.should be_instance_of(String) end it "should use the :privatekeydir as the collection directory" do Puppet[:privatekeydir] = "/key/dir" Puppet::SSL::Key::Ca.collection_directory.should == Puppet[:privatekeydir] end it "should store the ca key at the :cakey location" do Puppet.settings.stubs(:use) Puppet[:cakey] = "/ca/key" file = Puppet::SSL::Key::Ca.new file.stubs(:ca?).returns true file.path("whatever").should == Puppet[:cakey] end end
Version data entries
4 entries across 4 versions & 1 rubygems