summaryrefslogtreecommitdiffstats
path: root/spec/unit/parser/resource/reference.rb
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2009-04-06 11:45:23 +1000
committerJames Turnbull <james@lovedthanlost.net>2009-04-06 11:45:23 +1000
commit3aedfd8bbcefcdb92af57e4661a360be9aee2716 (patch)
treef44e6bd75fca39f2fd6c87e5d0b6e84ee14dd8e0 /spec/unit/parser/resource/reference.rb
parent173b5f0a162d8dd7f72e1cab257069bc65382960 (diff)
parenta677e26eb1452c08d7724047a18e50f4a654d2cd (diff)
downloadpuppet-3aedfd8bbcefcdb92af57e4661a360be9aee2716.tar.gz
puppet-3aedfd8bbcefcdb92af57e4661a360be9aee2716.tar.xz
puppet-3aedfd8bbcefcdb92af57e4661a360be9aee2716.zip
Merge branch 'master' of git://reductivelabs.com/puppet
Diffstat (limited to 'spec/unit/parser/resource/reference.rb')
-rwxr-xr-xspec/unit/parser/resource/reference.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/unit/parser/resource/reference.rb b/spec/unit/parser/resource/reference.rb
index bb1452692..6284e67cc 100755
--- a/spec/unit/parser/resource/reference.rb
+++ b/spec/unit/parser/resource/reference.rb
@@ -7,6 +7,10 @@ describe Puppet::Parser::Resource::Reference do
@type = Puppet::Parser::Resource::Reference
end
+ it "should use the file lookup module" do
+ Puppet::Parser::Resource::Reference.ancestors.should be_include(Puppet::FileCollection::Lookup)
+ end
+
it "should require a type" do
proc { @type.new(:title => "yay") }.should raise_error(Puppet::DevError)
end