Created
March 22, 2011 23:21
-
-
Save lak/882312 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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