From 0f2a2f29e85679c608497e9e2d699ba7c36b2ad1 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Tue, 30 Oct 2018 14:56:48 -0700 Subject: 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 --- spec/unit/cookbook_loader_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'spec/unit/cookbook_loader_spec.rb') 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 -- cgit v1.2.1