From 8d32fdd4377476a9f7dc36a864ccdaa17c32b3a1 Mon Sep 17 00:00:00 2001 From: danielsdeleo Date: Fri, 25 Sep 2015 15:27:04 -0700 Subject: Create empty config context for chefdk Allows `knife` and such to parse config files with `chefdk.settting` in them without error. --- chef-config/spec/unit/config_spec.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'chef-config/spec/unit') diff --git a/chef-config/spec/unit/config_spec.rb b/chef-config/spec/unit/config_spec.rb index bc35fbee69..d99ff428fb 100644 --- a/chef-config/spec/unit/config_spec.rb +++ b/chef-config/spec/unit/config_spec.rb @@ -561,6 +561,14 @@ RSpec.describe ChefConfig::Config do end end + describe "allowing chefdk configuration outside of chefdk" do + + it "allows arbitrary settings in the chefdk config context" do + expect { ChefConfig::Config.chefdk.generator_cookbook("/path") }.to_not raise_error + end + + end + describe "Treating deprecation warnings as errors" do context "when using our default RSpec configuration" do -- cgit v1.2.1