summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/functional/resource/cookbook_file_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/functional/resource/cookbook_file_spec.rb b/spec/functional/resource/cookbook_file_spec.rb
index adc1f7eef8..89efccc064 100644
--- a/spec/functional/resource/cookbook_file_spec.rb
+++ b/spec/functional/resource/cookbook_file_spec.rb
@@ -31,7 +31,9 @@ describe Chef::Resource::CookbookFile do
# spec data.
cookbook_repo = File.expand_path(File.join(CHEF_SPEC_DATA, 'cookbooks'))
Chef::Cookbook::FileVendor.on_create { |manifest| Chef::Cookbook::FileSystemFileVendor.new(manifest, cookbook_repo) }
- cookbook_collection = Chef::CookbookCollection.new(Chef::CookbookLoader.new(cookbook_repo))
+ loader = Chef::CookbookLoader.new(cookbook_repo)
+ loader.load_cookbooks
+ cookbook_collection = Chef::CookbookCollection.new(loader)
node = Chef::Node.new
events = Chef::EventDispatch::Dispatcher.new