summaryrefslogtreecommitdiffstats
path: root/spec/unit/resource_reference.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/resource_reference.rb')
-rwxr-xr-xspec/unit/resource_reference.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/unit/resource_reference.rb b/spec/unit/resource_reference.rb
index ee71a5077..a81a8a0d1 100755
--- a/spec/unit/resource_reference.rb
+++ b/spec/unit/resource_reference.rb
@@ -46,6 +46,14 @@ describe Puppet::ResourceReference do
ref.type.should == "Foo::Bar"
ref.title.should =="baz[yay]"
end
+
+ it "should be considered builtin if an existing resource type matches the type" do
+ Puppet::ResourceReference.new("file", "/f").should be_builtin_type
+ end
+
+ it "should be not considered builtin if an existing resource type does not match the type" do
+ Puppet::ResourceReference.new("foobar", "/f").should_not be_builtin_type
+ end
end
describe Puppet::ResourceReference, "when resolving resources with a catalog" do