Skip to content

Commit

Permalink
disabling OpenSSL hmac test from running on rbnacl
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmchan committed Oct 22, 2022
1 parent 0f899f5 commit e0a035a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/jwt/algos/hmac_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
RSpec.describe ::JWT::Algos::Hmac do
describe '.sign' do
subject { described_class.sign('HS256', 'test', hmac_secret) }
before do
skip "test only applicable for OpenSSL" unless defined?(RbNaCl)
end

# Address OpenSSL 3.0 errors with empty hmac_secret - https://github.com/jwt/ruby-jwt/issues/526
context 'when nil hmac_secret is passed' do
Expand Down

0 comments on commit e0a035a

Please sign in to comment.