diff options
author | Adam Jacob <adam@hjksolutions.com> | 2008-06-09 18:53:32 -0700 |
---|---|---|
committer | Adam Jacob <adam@hjksolutions.com> | 2008-06-09 18:53:32 -0700 |
commit | af843190f9be71469c4a20ef8f9021b292c05588 (patch) | |
tree | a38199db4baeaa3380ed41ec6e5e4c30b54b0685 /spec/unit/cookbook_loader_spec.rb | |
parent | d373915a1ac9ea25fcb52ac8468e4670425e3376 (diff) | |
download | chef-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.rb | 4 |
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 |