diff options
author | Luke Kanies <luke@madstop.com> | 2008-12-17 18:29:58 -0600 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-12-18 11:10:25 -0600 |
commit | e4ba3db1963081eacc2aef3d865f777b427ef23c (patch) | |
tree | 55a4aa8cdde262880a8affb6cbd4470d49c10c55 /spec/unit/parser/compiler.rb | |
parent | b6db54585177f277b1e06bebd4d925d5c272b610 (diff) | |
download | puppet-e4ba3db1963081eacc2aef3d865f777b427ef23c.tar.gz puppet-e4ba3db1963081eacc2aef3d865f777b427ef23c.tar.xz puppet-e4ba3db1963081eacc2aef3d865f777b427ef23c.zip |
Deprecating the Puppet::Type.create.
This method is no longer necessary; you can use the
normal 'new' class method.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/unit/parser/compiler.rb')
-rwxr-xr-x | spec/unit/parser/compiler.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/parser/compiler.rb b/spec/unit/parser/compiler.rb index 025836229..203105289 100755 --- a/spec/unit/parser/compiler.rb +++ b/spec/unit/parser/compiler.rb @@ -247,8 +247,8 @@ describe Puppet::Parser::Compiler do end it "should fail to add resources that conflict with existing resources" do - file1 = Puppet::Type.type(:file).create :path => "/foo" - file2 = Puppet::Type.type(:file).create :path => "/foo" + file1 = Puppet::Type.type(:file).new :path => "/foo" + file2 = Puppet::Type.type(:file).new :path => "/foo" @compiler.add_resource(@scope, file1) lambda { @compiler.add_resource(@scope, file2) }.should raise_error(Puppet::Resource::Catalog::DuplicateResourceError) |