Skip to content

Commit 3b4a1ab

Browse files
andyjdavisexcpt
authored andcommitted
Fixing some rubocop warnings
1 parent 97dfc64 commit 3b4a1ab

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

spec/integration/readme_examples_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,11 @@
232232
token = JWT.encode payload, hmac_secret, 'HS256'
233233

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

238238
expect do
239-
JWT.decode token, hmac_secret, true, :required_claims => ['data'], :algorithm => 'HS256'
239+
JWT.decode token, hmac_secret, true, required_claims: ['data'], algorithm: 'HS256'
240240
end.not_to raise_error
241241
end
242242

spec/jwt/verify_spec.rb

-1
Original file line numberDiff line numberDiff line change
@@ -261,5 +261,4 @@
261261
described_class.verify_required_claims(payload, options.merge(required_claims: ['exp', 'custom_claim']))
262262
end
263263
end
264-
265264
end

0 commit comments

Comments
 (0)