Skip to content

Instantly share code, notes, and snippets.

@lak
Created March 22, 2011 23:21
Show Gist options
  • Select an option

  • Save lak/882312 to your computer and use it in GitHub Desktop.

Select an option

Save lak/882312 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb')
require 'puppet/application/certificate'
describe Puppet::Application::Certificate do
it "should be a subclass of Puppet::Application::IndirectionBase" do
Puppet::Application::Certificate.superclass.should equal(
Puppet::Application::IndirectionBase
)
end
it "should have a 'ca' option" do
Puppet::Application::Certificate.new.should respond_to(:handle_ca)
end
it "should set the CA location using the 'ca' option" do
Puppet::Application::Certificate.new.handle_ca("local")
Puppet::SSL::Host.ca_location.should == :local
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment