Skip to content

Commit

Permalink
Refactored the tests to accept cert thumbprints with spaces and colon…
Browse files Browse the repository at this point in the history
…s and corrected a test that was causing a block in execution

Signed-off-by: John McCrae <[email protected]>
  • Loading branch information
johnmccrae committed Nov 25, 2021
1 parent ff0e9d5 commit e146fce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/win32/unit/certstore_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ def delete_cert
end

describe "#cert_add" do
context "When passing certificate path instead of certificate object to the CurrentUser store" do
context "When passing certificate path instead of certificate object to the LocalMachine store" do
let(:store_name) { "root" }
let(:cert_file_path) { '.\spec\win32\assets\GlobalSignRootCA.pem' }
it "it raises ArgumentError - Invalid Certificate object" do
Expand All @@ -481,7 +481,7 @@ def delete_cert
end
end

context "When passing invalid certificate object to the CurrentUser Store" do
context "When passing invalid certificate object to the LocalMachine Store" do
let(:store_name) { "my" }
let(:cert_file_path) { '.\spec\win32\assets\notes.txt' }
it "it raises ArgumentError - Invalid Certificate object" do
Expand Down

0 comments on commit e146fce

Please sign in to comment.