summaryrefslogtreecommitdiffstats
path: root/spec/unit/string/certificate_spec.rb
blob: 9fdc5aab8e0168a6f39d7f5da15b9a69107f37ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require 'puppet/ssl/host'

describe Puppet::String[:certificate, '0.0.1'] do
  it "should have a ca-location option" do
    subject.should be_option :ca_location
  end

  it "should set the ca location when invoked" do
    pending "#6983: This is broken in the actual string..."
    Puppet::SSL::Host.expects(:ca_location=).with(:foo)
    Puppet::SSL::Host.indirection.expects(:save)
    subject.sign :ca_location => :foo
  end
end