Skip to content

Commit

Permalink
Make tests for the JWT::JWK::EC compatible with Ruby 2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
anakinj committed Dec 2, 2020
1 parent 752ee22 commit 8f0527f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/jwk/ec_spec.rb
Expand Up @@ -4,7 +4,7 @@
require 'jwt'

describe JWT::JWK::EC do
let(:ec_key) { OpenSSL::PKey::EC.new("secp384r1").generate_key! }
let(:ec_key) { OpenSSL::PKey::EC.new("secp384r1").generate_key }

describe '.new' do
subject { described_class.new(keypair) }
Expand Down
2 changes: 1 addition & 1 deletion spec/jwk_spec.rb
Expand Up @@ -5,7 +5,7 @@

describe JWT::JWK do
let(:rsa_key) { OpenSSL::PKey::RSA.new(2048) }
let(:ec_key) { OpenSSL::PKey::EC.new("secp384r1").generate_key! }
let(:ec_key) { OpenSSL::PKey::EC.new("secp384r1").generate_key }

describe '.import' do
let(:keypair) { rsa_key.public_key }
Expand Down

0 comments on commit 8f0527f

Please sign in to comment.