Skip to content

Commit

Permalink
refactor signature spec
Browse files Browse the repository at this point in the history
  • Loading branch information
jshawl committed Feb 3, 2024
1 parent 7196f4a commit b1b2504
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 8 additions & 0 deletions spec/minisign/signature_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# frozen_string_literal: true

describe Minisign::Signature do
it 'has a key id' do
@signature = Minisign::Signature.new(File.read('test/example.txt.minisig'))
expect(@signature.key_id).to eq('4CB7A94FABA329A6')
end
end
7 changes: 0 additions & 7 deletions spec/minisign_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,3 @@
end.to raise_error("Signature key id is 4CB7A94FABA329A6\nbut the key id in the public key is F15F69C58B18A08")
end
end

describe Minisign::Signature do
it 'has a key id' do
@signature = Minisign::Signature.new(File.read('test/example.txt.minisig'))
expect(@signature.key_id).to eq('4CB7A94FABA329A6')
end
end

0 comments on commit b1b2504

Please sign in to comment.