Skip to content

Commit

Permalink
Fixing some rubocop warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
andyjdavis authored and excpt committed Jul 16, 2021
1 parent 97dfc64 commit 3b4a1ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions spec/integration/readme_examples_spec.rb
Expand Up @@ -232,11 +232,11 @@
token = JWT.encode payload, hmac_secret, 'HS256'

expect do
JWT.decode token, hmac_secret, true, :required_claims => ['exp'], :algorithm => 'HS256'
JWT.decode token, hmac_secret, true, required_claims: ['exp'], algorithm: 'HS256'
end.to raise_error(JWT::MissingRequiredClaim)

expect do
JWT.decode token, hmac_secret, true, :required_claims => ['data'], :algorithm => 'HS256'
JWT.decode token, hmac_secret, true, required_claims: ['data'], algorithm: 'HS256'
end.not_to raise_error
end

Expand Down
1 change: 0 additions & 1 deletion spec/jwt/verify_spec.rb
Expand Up @@ -261,5 +261,4 @@
described_class.verify_required_claims(payload, options.merge(required_claims: ['exp', 'custom_claim']))
end
end

end

0 comments on commit 3b4a1ab

Please sign in to comment.