Sha256: f0facdbfefccccf72572dde3663382c4db03908b18ec095c53647e8cb2481ca4

Contents?: true

Size: 542 Bytes

Versions: 12

Compression:

Stored size: 542 Bytes

Contents

#! /usr/bin/env ruby
require 'spec_helper'
require 'puppet/network/authorization'

describe Puppet::Network::Authorization do
  class AuthTest
    include Puppet::Network::Authorization
  end

  subject { AuthTest.new }

  describe "when creating an authconfig object" do
    it "creates default ACL entries if no file has been read" do
      Puppet::Network::AuthConfigParser.expects(:new_from_file).raises Errno::ENOENT
      Puppet::Network::AuthConfig.any_instance.expects(:insert_default_acl)

      subject.authconfig
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
librarian-puppet-0.9.9 vendor/gems/ruby/1.9.1/gems/puppet-3.1.0/spec/unit/network/authorization_spec.rb
librarian-puppet-0.9.8 vendor/gems/ruby/1.9.1/gems/puppet-3.1.0/spec/unit/network/authorization_spec.rb
puppet-3.1.0 spec/unit/network/authorization_spec.rb
puppet-3.1.0.rc2 spec/unit/network/authorization_spec.rb
puppet-3.1.0.rc1 spec/unit/network/authorization_spec.rb
puppet-3.0.2 spec/unit/network/authorization_spec.rb
puppet-3.0.2.rc3 spec/unit/network/authorization_spec.rb
puppet-3.0.2.rc2 spec/unit/network/authorization_spec.rb
puppet-3.0.2.rc1 spec/unit/network/authorization_spec.rb
puppet-3.0.1 spec/unit/network/authorization_spec.rb
puppet-3.0.1.rc1 spec/unit/network/authorization_spec.rb
puppet-3.0.0 spec/unit/network/authorization_spec.rb