Sha256: 4c382f3b03e94bcac25fa5e3a45594e6c66a4823dcc93970669f9411418f29b7

Contents?: true

Size: 744 Bytes

Versions: 92

Compression:

Stored size: 744 Bytes

Contents

#! /usr/bin/env ruby
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

92 entries across 92 versions & 2 rubygems

Version Path
puppet-3.8.7 spec/integration/type_spec.rb
puppet-3.8.7-x86-mingw32 spec/integration/type_spec.rb
puppet-3.8.7-x64-mingw32 spec/integration/type_spec.rb
puppet-3.8.6 spec/integration/type_spec.rb
puppet-3.8.6-x86-mingw32 spec/integration/type_spec.rb
puppet-3.8.6-x64-mingw32 spec/integration/type_spec.rb
puppet-3.8.5 spec/integration/type_spec.rb
puppet-3.8.5-x86-mingw32 spec/integration/type_spec.rb
puppet-3.8.5-x64-mingw32 spec/integration/type_spec.rb
puppet-3.8.4 spec/integration/type_spec.rb
puppet-3.8.4-x86-mingw32 spec/integration/type_spec.rb
puppet-3.8.4-x64-mingw32 spec/integration/type_spec.rb
puppet-3.8.3 spec/integration/type_spec.rb
puppet-3.8.3-x86-mingw32 spec/integration/type_spec.rb
puppet-3.8.3-x64-mingw32 spec/integration/type_spec.rb
puppet-3.8.2 spec/integration/type_spec.rb
puppet-3.8.2-x86-mingw32 spec/integration/type_spec.rb
puppet-3.8.2-x64-mingw32 spec/integration/type_spec.rb
puppet-3.8.1 spec/integration/type_spec.rb
puppet-3.8.1-x86-mingw32 spec/integration/type_spec.rb