diff options
-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) |