Sha256: 621f549ef3bcfc638fb130eeed21482441afa72ccd32f8cebc473bfca9c7a835

Contents?: true

Size: 691 Bytes

Versions: 2

Compression:

Stored size: 691 Bytes

Contents

require 'puppet/application/certificate'

describe Puppet::Application::Certificate do
  it "should have a 'ca-location' option" do
    # REVISIT: This is delegated from the face, and we will have a test there,
    # so is this actually a valuable test? --daniel 2011-04-07
    subject.command_line.stubs(:args).returns %w{list}
    subject.preinit
    subject.parse_options
    subject.should respond_to(:handle_ca_location)
  end

  it "should accept the ca-location option" do
    subject.command_line.stubs(:args).returns %w{--ca-location local list}
    subject.preinit
    subject.parse_options
    subject.setup
    subject.arguments.should == [{ :ca_location => "local" }]
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
puppet-2.7.3 spec/unit/application/certificate_spec.rb
puppet-2.7.1 spec/unit/application/certificate_spec.rb