summaryrefslogtreecommitdiff
path: root/spec/unit/parser/compiler.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/parser/compiler.rb')
-rwxr-xr-xspec/unit/parser/compiler.rb4
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)