diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/resource/windows_certificate.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/unit/resource/windows_certificate.rb b/spec/unit/resource/windows_certificate.rb index 97e404a2d5..95d465e4a8 100644 --- a/spec/unit/resource/windows_certificate.rb +++ b/spec/unit/resource/windows_certificate.rb @@ -73,4 +73,11 @@ describe Chef::Resource::WindowsCertificate do resource.pfx_password "foo" expect(resource.sensitive).to be_truthy end + + it "doesn't raise error if pfx_password contains special characters" do + resource.pfx_password "chef$123" + resource.source "C:\\certs\\test-cert.pfx" + resource.store_name "MY" + expect { resource.action :create }.not_to raise_error + end end |