Skip to content

Commit

Permalink
Fix Rubocop issue
Browse files Browse the repository at this point in the history
  • Loading branch information
anakinj committed Aug 10, 2024
1 parent c3d3946 commit e0978d4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/jwk_loader/config/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module JwkLoader
class Config
class ConfigurationNotFound < JwkLoader::Error
def initialize(key)
super "Configuration for #{key} not available"
super("Configuration for #{key} not available")
end
end

Expand Down
4 changes: 2 additions & 2 deletions spec/jwk-loader_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
RSpec.describe JwkLoader do
describe ".configure" do
it "yields config" do
expect { |b| JwkLoader.configure(&b) }.to yield_with_args(::JwkLoader::Config)
expect { |b| JwkLoader.configure(&b) }.to yield_with_args(JwkLoader::Config)
end
end

Expand All @@ -14,7 +14,7 @@

context "when no configuration is given" do
it "returns a provider with the default configuration" do
expect(provider.cache).to be_a(::JwkLoader::MemoryCache)
expect(provider.cache).to be_a(JwkLoader::MemoryCache)
expect(provider.cache_grace_period).to eq(900)
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/jwk_loader/jwks_uri_provider_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
end

let(:token) { JWT.encode({ "pay" => "load" }, jwk.keypair, "RS512", { kid: jwk.kid }) }
let(:cache) { ::JwkLoader.cache }
let(:cache) { JwkLoader.cache }

subject(:jwks_provider) { JwkLoader.for_uri(uri: "https://www.googleapis.com/oauth2/v3/certs", cache: cache) }

Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
end

config.after(:each) do
::JwkLoader.reset!
JwkLoader.reset!
end
end

Expand Down

0 comments on commit e0978d4

Please sign in to comment.