summaryrefslogtreecommitdiff
path: root/chef-config/spec/unit
diff options
context:
space:
mode:
authordanielsdeleo <dan@chef.io>2015-09-25 15:27:04 -0700
committerdanielsdeleo <dan@chef.io>2015-09-25 17:36:25 -0700
commit8d32fdd4377476a9f7dc36a864ccdaa17c32b3a1 (patch)
tree827d39e4c92a554772797096fc6c22803b97bb35 /chef-config/spec/unit
parent3952953b82ddc2bd98bcfd777699d8c5699fb38d (diff)
downloadchef-8d32fdd4377476a9f7dc36a864ccdaa17c32b3a1.tar.gz
Create empty config context for chefdk
Allows `knife` and such to parse config files with `chefdk.settting` in them without error.
Diffstat (limited to 'chef-config/spec/unit')
-rw-r--r--chef-config/spec/unit/config_spec.rb8
1 files changed, 8 insertions, 0 deletions
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