Sha256: d764752d45f055c003e09d671301cfd3de2a7b4f702d330fc0408fc6eccd831f

Contents?: true

Size: 593 Bytes

Versions: 2

Compression:

Stored size: 593 Bytes

Contents

#!/usr/bin/env rspec
#
#  Created by Luke Kanies on 2008-3-7.
#  Copyright (c) 2007. All rights reserved.

require 'spec_helper'

require 'puppet/indirector/certificate_request/file'

describe Puppet::SSL::CertificateRequest::File do
  it "should have documentation" do
    Puppet::SSL::CertificateRequest::File.doc.should be_instance_of(String)
  end

  it "should use the :requestdir as the collection directory" do
    Puppet.settings.expects(:value).with(:requestdir).returns "/request/dir"
    Puppet::SSL::CertificateRequest::File.collection_directory.should == "/request/dir"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
puppet-2.7.3 spec/unit/indirector/certificate_request/file_spec.rb
puppet-2.7.1 spec/unit/indirector/certificate_request/file_spec.rb