Skip to content

Commit

Permalink
Fixes when integrating current main
Browse files Browse the repository at this point in the history
  • Loading branch information
anakinj committed Oct 14, 2023
1 parent 4d195fe commit 83c4105
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions spec/dsl/dsl_spec.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# frozen_string_literal: true

RSpec.describe ::JWT::DSL do
RSpec.describe JWT::DSL do
describe '.sign_and_encode' do
context 'when algorithm is given as HS256' do
subject(:defined_obj) do
::JWT.define do
JWT.define do
signing_algorithm 'HS256'
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/jwk/thumbprint_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
describe JWT::JWK::Thumbprint do
describe '#to_s' do
let(:jwk_json) { nil }
let(:jwk) { JWT::JWK.import(::JSON.parse(jwk_json)) }
let(:jwk) { JWT::JWK.import(JSON.parse(jwk_json)) }

subject(:thumbprint) { described_class.new(jwk).to_s }

Expand Down
2 changes: 1 addition & 1 deletion spec/jwt/validators/expiration_claim_validator_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

RSpec.describe ::JWT::Validators::ExpirationClaimValidator do
RSpec.describe JWT::Validators::ExpirationClaimValidator do
let(:payload) { { 'exp' => (Time.now.to_i + 5) } }
let(:leeway) { 0 }

Expand Down
2 changes: 1 addition & 1 deletion spec/jwt/validators/issued_at_claim_validator_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

RSpec.describe ::JWT::Validators::IssuedAtClaimValidator do
RSpec.describe JWT::Validators::IssuedAtClaimValidator do
let(:payload) { { 'iat' => Time.now.to_f } }

subject(:validate!) { described_class.new.validate!(context: Struct.new(:payload).new(payload)) }
Expand Down
2 changes: 1 addition & 1 deletion spec/jwt/validators/issuer_claim_validator_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

RSpec.describe ::JWT::Validators::IssuerClaimValidator do
RSpec.describe JWT::Validators::IssuerClaimValidator do
let(:issuer) { 'ruby-jwt-gem' }
let(:payload) { { 'iss' => issuer } }
let(:expected_issuers) { 'ruby-jwt-gem' }
Expand Down
2 changes: 1 addition & 1 deletion spec/jwt/validators/jwt_id_claim_validator_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

RSpec.describe ::JWT::Validators::JwtIdClaimValidator do
RSpec.describe JWT::Validators::JwtIdClaimValidator do
let(:jti) { 'some-random-uuid-or-whatever' }
let(:payload) { { 'jti' => jti } }
let(:validator) { nil }
Expand Down
2 changes: 1 addition & 1 deletion spec/jwt/validators/not_before_claim_validator_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

RSpec.describe ::JWT::Validators::NotBeforeClaimValidator do
RSpec.describe JWT::Validators::NotBeforeClaimValidator do
let(:payload) { { 'nbf' => (Time.now.to_i + 5) } }

describe '#validate!' do
Expand Down
2 changes: 1 addition & 1 deletion spec/jwt/validators/required_claims_validator_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

RSpec.describe ::JWT::Validators::RequiredClaimsValidator do
RSpec.describe JWT::Validators::RequiredClaimsValidator do
let(:payload) { { 'data' => 'value' } }

subject(:validate!) { described_class.new(required_claims: required_claims).validate!(context: Struct.new(:payload).new(payload)) }
Expand Down

0 comments on commit 83c4105

Please sign in to comment.