diff options
author | Tim Smith <tsmith@chef.io> | 2019-02-05 13:40:30 -0800 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2019-02-05 13:47:58 -0800 |
commit | 60874b3632f2089b1d6008a479e7018d45c314e8 (patch) | |
tree | ef0e5e1d6bf76c617b44f56958f5a2a5564f7574 | |
parent | f179570242d40989ff744fb64787a2d80a8bfd61 (diff) | |
download | chef-60874b3632f2089b1d6008a479e7018d45c314e8.tar.gz |
Update spec for changes to 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 |