Sha256: a79860696795ff62070a534a1dfbd56e61bd44b7d308597b1d55344bb4daebc1

Contents?: true

Size: 734 Bytes

Versions: 33

Compression:

Stored size: 734 Bytes

Contents

#!/usr/bin/env rspec
require 'spec_helper'
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

33 entries across 33 versions & 3 rubygems

Version Path
puppet-2.7.26 spec/unit/application/certificate_spec.rb
puppet-2.7.25 spec/unit/application/certificate_spec.rb
puppet-2.7.24 spec/unit/application/certificate_spec.rb
puppet-2.7.23 spec/unit/application/certificate_spec.rb
puppet-2.7.22 spec/unit/application/certificate_spec.rb
puppet-2.7.21 spec/unit/application/certificate_spec.rb
puppet-2.7.20 spec/unit/application/certificate_spec.rb
puppet-2.7.20.rc1 spec/unit/application/certificate_spec.rb
librarian-puppet-0.9.4 vendor/gems/ruby/1.8/gems/puppet-2.7.18/spec/unit/application/certificate_spec.rb
puppet-2.7.19 spec/unit/application/certificate_spec.rb
supply_drop-0.11.0 examples/vendored-puppet/vendor/puppet-2.7.8/spec/unit/application/certificate_spec.rb
librarian-puppet-0.9.3 vendor/gems/ruby/1.8/gems/puppet-2.7.18/spec/unit/application/certificate_spec.rb
supply_drop-0.10.2 examples/vendored-puppet/vendor/puppet-2.7.8/spec/unit/application/certificate_spec.rb
puppet-2.7.18 spec/unit/application/certificate_spec.rb
supply_drop-0.10.1 examples/vendored-puppet/vendor/puppet-2.7.8/spec/unit/application/certificate_spec.rb
supply_drop-0.10.0 examples/vendored-puppet/vendor/puppet-2.7.8/spec/unit/application/certificate_spec.rb
puppet-2.7.17 spec/unit/application/certificate_spec.rb
puppet-2.7.16 spec/unit/application/certificate_spec.rb
puppet-2.7.14 spec/unit/application/certificate_spec.rb
puppet-2.7.13 spec/unit/application/certificate_spec.rb