summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc A. Paradise <marc.paradise@gmail.com>2019-04-19 21:42:45 -0400
committerMarc A. Paradise <marc.paradise@gmail.com>2019-04-24 13:29:00 -0400
commit9befa6106a1972549449e074fbcbe828151bf54f (patch)
tree4ebc28620b39151eaae1767e8336275bacb6ddb2
parent742de4bef315a56cecc016d8507369805d6c5dd2 (diff)
downloadchef-9befa6106a1972549449e074fbcbe828151bf54f.tar.gz
test fix
Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
-rw-r--r--spec/unit/knife/bootstrap_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/knife/bootstrap_spec.rb b/spec/unit/knife/bootstrap_spec.rb
index d9621e0219..b5698c5a9f 100644
--- a/spec/unit/knife/bootstrap_spec.rb
+++ b/spec/unit/knife/bootstrap_spec.rb
@@ -447,8 +447,8 @@ describe Chef::Knife::Bootstrap do
end
end
- it "doesn't create /etc/chef/trusted_certs if :trusted_certs_dir is empty" do
- allow(Dir).to receive(:glob).and_call_original
+ it "doesn't create /etc/chef/trusted_certs if :trusted_certs_dir is empty", :focus do
+ allow(Dir).to receive(:glob).and_call_original # ensure the template can be found
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