diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-06-27 11:23:53 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-27 11:23:53 -0700 |
commit | 77abbb8035f060c4311b08d5718344ced352cccc (patch) | |
tree | ced3721ed4493d7833455af565aa6c7de28be07e /spec | |
parent | 056ae82723d5448899c816b18642be062920501e (diff) | |
parent | eb75a34b7891f416c3c3f4f71bee86f6c500a4d7 (diff) | |
download | chef-77abbb8035f060c4311b08d5718344ced352cccc.tar.gz |
Merge pull request #7395 from chef/lcg/spec-to-remove-cookbook-merging
add spec to force really remove cookbook merging
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/cookbook_loader_spec.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/unit/cookbook_loader_spec.rb b/spec/unit/cookbook_loader_spec.rb index 19f3160d0c..8bc215360a 100644 --- a/spec/unit/cookbook_loader_spec.rb +++ b/spec/unit/cookbook_loader_spec.rb @@ -59,13 +59,18 @@ describe Chef::CookbookLoader do cookbook_loader.load_cookbooks end - it "should be possible to reload all the cookbooks without triggering deprecation warnings on all of them" do + it "should be possible to reload all the cookbooks without triggering deprecation warnings on all of them", chef: "< 15" do start_merged_cookbooks = cookbook_loader.merged_cookbooks expect(Chef::Log).to receive(:deprecation).with(/The cookbook\(s\): openldap exist in multiple places in your cookbook_path./) cookbook_loader.load_cookbooks expect(cookbook_loader.merged_cookbooks).to eql(start_merged_cookbooks) end + it "should not support multiple merged cookbooks in the cookbook path", chef: ">= 15" do + start_merged_cookbooks = cookbook_loader.merged_cookbooks + expect { cookbook_loader.load_cookbooks }.to raise_error("FIXME WITH THE CLASS YOU DECIDE TO USE HERE") + end + describe "[]" do it "should return cookbook objects with []" do expect(cookbook_loader[:openldap]).to be_a_kind_of(Chef::CookbookVersion) |