diff options
| author | Dominic Maraglia <dominic@puppetlabs.com> | 2011-06-10 14:35:38 -0700 |
|---|---|---|
| committer | Dominic Maraglia <dominic@puppetlabs.com> | 2011-06-10 14:35:38 -0700 |
| commit | a97c86e7d01384aa06f5d4d69da427fc355aebe7 (patch) | |
| tree | fcfb00227026d0f7f53a97a70e1ba39602a92134 /spec/integration | |
| parent | 0b0a9be25f95f7dfd14bbcc9bf7c7f9b21531100 (diff) | |
| parent | 381fa409207a1b0d26e7e55ea8cbe45a7e132fdf (diff) | |
| download | puppet-a97c86e7d01384aa06f5d4d69da427fc355aebe7.tar.gz puppet-a97c86e7d01384aa06f5d4d69da427fc355aebe7.tar.xz puppet-a97c86e7d01384aa06f5d4d69da427fc355aebe7.zip | |
Merge branch 'ticket/2.6.x/6418'
Diffstat (limited to 'spec/integration')
| -rwxr-xr-x | spec/integration/type_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/integration/type_spec.rb b/spec/integration/type_spec.rb index 4be01d558..9fd10485f 100755 --- a/spec/integration/type_spec.rb +++ b/spec/integration/type_spec.rb @@ -18,4 +18,15 @@ describe Puppet::Type do 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 |
