summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance Albertson <lance@osuosl.org>2020-08-31 12:14:58 -0700
committerLance Albertson <lance@osuosl.org>2020-09-15 14:04:36 -0700
commitf50180bd2972292c18f31565a1d23ad647ab2a1d (patch)
treeaec15fbd1f06881ce9c4608922c4710e050e4518
parente61b4c5b47c6552da204a87a1f25ff4ff77d7945 (diff)
downloadchef-f50180bd2972292c18f31565a1d23ad647ab2a1d.tar.gz
Move to using ChefConfig for CONF_DIR
Signed-off-by: Lance Albertson <lance@osuosl.org>
-rw-r--r--spec/support/shared/unit/application_dot_d.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/shared/unit/application_dot_d.rb b/spec/support/shared/unit/application_dot_d.rb
index 6d722e3734..692b0f99e1 100644
--- a/spec/support/shared/unit/application_dot_d.rb
+++ b/spec/support/shared/unit/application_dot_d.rb
@@ -38,7 +38,7 @@ shared_examples_for "an application that loads a dot d" do
end
it "loads the configuration in order" do
- etc_chef_client_rb = Chef::Config.platform_specific_path("#{Chef::Dist::CONF_DIR}/client.rb")
+ etc_chef_client_rb = Chef::Config.platform_specific_path("#{ChefConfig::Config.etc_chef_dir}/client.rb")
expect(IO).to receive(:read).with(Pathname.new("#{client_d_dir}/00-foo.rb").cleanpath.to_s).and_return("foo 0")
expect(IO).to receive(:read).with(Pathname.new("#{client_d_dir}/01-bar.rb").cleanpath.to_s).and_return("bar 0")
expect(IO).to receive(:read).with(Pathname.new("#{client_d_dir}/02-strings.rb").cleanpath.to_s).and_return("strings 0")