Sha256: 48e070bdcf31732c05325195df1d1aa5b8ed6121453bc8d6b596f309057db54a

Contents?: true

Size: 744 Bytes

Versions: 34

Compression:

Stored size: 744 Bytes

Contents

#!/usr/bin/env rspec
require 'spec_helper'

require 'puppet/type'

describe Puppet::Type do
  it "should not lose its provider list when it is reloaded" do
    type = Puppet::Type.newtype(:integration_test) do
      newparam(:name) {}
    end

    provider = type.provide(:myprovider) {}

    # reload it
    type = Puppet::Type.newtype(:integration_test) do
      newparam(:name) {}
    end

    type.provider(:myprovider).should equal(provider)
  end

  it "should not lose its provider parameter when it is reloaded" do
    type = Puppet::Type.newtype(:reload_test_type)

    provider = type.provide(:test_provider)

    # reload it
    type = Puppet::Type.newtype(:reload_test_type)

    type.parameters.should include(:provider)
  end
end

Version data entries

34 entries across 34 versions & 3 rubygems

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