5
require 'puppet/ssl/host'
7
describe Puppet::Face[:certificate, '0.0.1'] do
8
it "should have a ca-location option" do
9
subject.should be_option :ca_location
12
it "should set the ca location when invoked" do
13
Puppet::SSL::Host.expects(:ca_location=).with(:foo)
14
Puppet::SSL::Host.indirection.expects(:save)
15
subject.sign "hello, friend", :ca_location => :foo
18
it "(#7059) should set the ca location when an inherited action is invoked" do
19
Puppet::SSL::Host.expects(:ca_location=).with(:foo)
20
subject.indirection.expects(:find)
21
subject.find "hello, friend", :ca_location => :foo