Skip to content

Commit

Permalink
test against jesdict1
Browse files Browse the repository at this point in the history
  • Loading branch information
jshawl committed Feb 10, 2024
1 parent c91ef02 commit cb82904
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/minisign/private_key_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@
expect do
Minisign::PrivateKey.new(@private_key.to_s, new_password)
end.not_to raise_error

File.write('test/generated/new-password.key', @private_key)
path = 'test/generated'
command = "echo #{new_password} | #{path}/minisign -Sm #{path}/.keep -s #{path}/new-password.key"
expect(system(command)).to be(true)
end
end
end

0 comments on commit cb82904

Please sign in to comment.