summaryrefslogtreecommitdiff
path: root/spec/unit/cookbook_loader_spec.rb
diff options
context:
space:
mode:
authorAdam Jacob <adam@hjksolutions.com>2008-06-09 18:53:32 -0700
committerAdam Jacob <adam@hjksolutions.com>2008-06-09 18:53:32 -0700
commitaf843190f9be71469c4a20ef8f9021b292c05588 (patch)
treea38199db4baeaa3380ed41ec6e5e4c30b54b0685 /spec/unit/cookbook_loader_spec.rb
parentd373915a1ac9ea25fcb52ac8468e4670425e3376 (diff)
downloadchef-af843190f9be71469c4a20ef8f9021b292c05588.tar.gz
Huge amount of work, covering openid, clients, and all sorts of server stuff
Diffstat (limited to 'spec/unit/cookbook_loader_spec.rb')
-rw-r--r--spec/unit/cookbook_loader_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/unit/cookbook_loader_spec.rb b/spec/unit/cookbook_loader_spec.rb
index d66034ce7d..10f976cb05 100644
--- a/spec/unit/cookbook_loader_spec.rb
+++ b/spec/unit/cookbook_loader_spec.rb
@@ -37,6 +37,10 @@ describe Chef::CookbookLoader do
@cl[:openldap].should be_a_kind_of(Chef::Cookbook)
end
+ it "should raise an exception if it cannot find a cookbook with []" do
+ lambda { @cl[:monkeypoop] }.should raise_error(ArgumentError)
+ end
+
it "should allow you to look up available cookbooks with [] and a symbol" do
@cl[:openldap].name.should eql(:openldap)
end