diff options
author | Tim Smith <tsmith@chef.io> | 2019-01-28 22:06:26 -0800 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2019-01-28 22:34:36 -0800 |
commit | b8ba371934c7df93d05e9a7304fba2ce1abae535 (patch) | |
tree | ecd40d942e5f3fcc4b7624600ac10a8d0369177b | |
parent | 18a301826c6562f7f2ea92ca7cbe48d36996ba30 (diff) | |
download | chef-b8ba371934c7df93d05e9a7304fba2ce1abae535.tar.gz |
Fix failing spec
This didn't work due to changes to dir calls in rubygems.
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | spec/unit/knife/bootstrap_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/unit/knife/bootstrap_spec.rb b/spec/unit/knife/bootstrap_spec.rb index 624261fb8b..258d193cf1 100644 --- a/spec/unit/knife/bootstrap_spec.rb +++ b/spec/unit/knife/bootstrap_spec.rb @@ -442,6 +442,7 @@ describe Chef::Knife::Bootstrap do end it "doesn't create /etc/chef/trusted_certs if :trusted_certs_dir is empty" do + allow(Dir).to receive(:glob).and_call_original expect(Dir).to receive(:glob).with(File.join(trusted_certs_dir, "*.{crt,pem}")).and_return([]) expect(rendered_template).not_to match(%r{mkdir -p /etc/chef/trusted_certs}) end |