summaryrefslogtreecommitdiff
path: root/spec/unit/cookbook_loader_spec.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-10-30 14:56:48 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2018-10-30 14:56:48 -0700
commit0f2a2f29e85679c608497e9e2d699ba7c36b2ad1 (patch)
tree5daa974c7c43342872456a3aeeca3d959db5ade5 /spec/unit/cookbook_loader_spec.rb
parent51ed9dd1eaff95b68f10890892e64dbf99aba85b (diff)
downloadchef-0f2a2f29e85679c608497e9e2d699ba7c36b2ad1.tar.gz
More cookbook loader cleanup and documentation
Removes a bit more cruft left over from removing cookbook merging. Tries to document what the loader actually is and what it does. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/unit/cookbook_loader_spec.rb')
-rw-r--r--spec/unit/cookbook_loader_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/unit/cookbook_loader_spec.rb b/spec/unit/cookbook_loader_spec.rb
index 7c15cc9030..ddb4f00f35 100644
--- a/spec/unit/cookbook_loader_spec.rb
+++ b/spec/unit/cookbook_loader_spec.rb
@@ -196,7 +196,9 @@ describe Chef::CookbookLoader do
end
it "should not load the cookbook again when accessed" do
- expect(cookbook_loader).not_to receive("load_cookbook")
+ cookbook_loader.send(:cookbook_version_loaders).each do |cbv_loader|
+ expect(cbv_loader).not_to receive(:load)
+ end
cookbook_loader["openldap"]
end