Skip to content

Commit

Permalink
Fix OpenSSL::PKey::EC public_key handing in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anakinj committed Jun 28, 2021
1 parent 4350e97 commit c444ac9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/jwk/ec_spec.rb
Expand Up @@ -15,7 +15,7 @@
end

context 'when a keypair with only public key is given' do
let(:keypair) { ec_key.tap { |x| x.private_key = nil } }
let(:keypair) { OpenSSL::PKey::EC.new(ec_key.public_key.group).tap { |ec| ec.public_key = ec_key.public_key } }
it 'creates an instance of the class' do
expect(subject).to be_a described_class
expect(subject.private?).to eq false
Expand Down

0 comments on commit c444ac9

Please sign in to comment.