diff options
author | andy-dufour <adufour@chef.io> | 2016-02-12 09:46:49 -0500 |
---|---|---|
committer | andy-dufour <adufour@chef.io> | 2016-02-12 09:46:49 -0500 |
commit | 3357e7113ddc72d93e10b82520d007a51be4cad9 (patch) | |
tree | 2571657c78104536e060710a40a7584c718d2bc9 | |
parent | c1856700df5dc6944f22872b83668ca68ffe42ed (diff) | |
download | chef-ad/fix_policyfile_zero.tar.gz |
Fix policyfile testsad/fix_policyfile_zero
-rw-r--r-- | spec/unit/policy_builder/policyfile_spec.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/unit/policy_builder/policyfile_spec.rb b/spec/unit/policy_builder/policyfile_spec.rb index 40f4daaf76..0e73def3e1 100644 --- a/spec/unit/policy_builder/policyfile_spec.rb +++ b/spec/unit/policy_builder/policyfile_spec.rb @@ -686,14 +686,18 @@ describe Chef::PolicyBuilder::Policyfile do before do expect(http_api).to receive(:get).with(cookbook1_url). - and_return(example1_cookbook_object) + and_return(example1_cookbook_data) expect(http_api).to receive(:get).with(cookbook2_url). + and_return(example2_cookbook_data) + + expect(Chef::CookbookVersion).to receive(:from_cb_artifact_data).with(example1_cookbook_data). + and_return(example1_cookbook_object) + expect(Chef::CookbookVersion).to receive(:from_cb_artifact_data).with(example2_cookbook_data). and_return(example2_cookbook_object) end include_examples "fetching cookbooks when they exist" end - end context "when using native API mode (policy_document_native_api == true)" do |