Skip to content

Commit 53a817a

Browse files
committed
βœ… Fix tests
1 parent 170ce27 commit 53a817a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

β€Ž.rubocop_gradual.lockβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[66, 5, 20, "ThreadSafety/ClassInstanceVariable: Avoid class instance variables.", 2485198147],
44
[78, 5, 74, "Style/InvertibleUnlessCondition: Prefer `if Gem.rubygems_version >= Gem::Version.new(\"2.7.0\")` over `unless Gem.rubygems_version < Gem::Version.new(\"2.7.0\")`.", 2453573257]
55
],
6-
"lib/oauth2.rb:649414550": [
6+
"lib/oauth2.rb:3563577000": [
77
[34, 5, 21, "ThreadSafety/ClassAndModuleAttributes: Avoid mutating class and module attributes.", 622027168],
88
[37, 11, 7, "ThreadSafety/ClassInstanceVariable: Avoid class instance variables.", 651502127]
99
],
@@ -97,7 +97,7 @@
9797
"spec/oauth2/version_spec.rb:1001406821": [
9898
[3, 1, 30, "RSpec/SpecFilePathFormat: Spec path should end with `o_auth2/version*_spec.rb`.", 1099517182]
9999
],
100-
"spec/oauth2_spec.rb:1758355750": [
100+
"spec/oauth2_spec.rb:2292862590": [
101101
[3, 1, 21, "RSpec/SpecFilePathFormat: Spec path should end with `o_auth2*_spec.rb`.", 3359091140]
102102
]
103103
}

β€Žlib/oauth2.rbβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
module OAuth2
2828
OAUTH_DEBUG = ENV.fetch("OAUTH_DEBUG", "false").casecmp("true").zero?
2929
DEFAULT_CONFIG = SnakyHash::SymbolKeyed.new(
30-
silence_extra_tokens_warning: !OAUTH_DEBUG,
30+
silence_extra_tokens_warning: true,
3131
)
3232
@config = DEFAULT_CONFIG.dup
3333
class << self

β€Žspec/oauth2_spec.rbβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
RSpec.describe OAuth2 do
44
it "silence_extra_tokens_warning default is opposite of OAUTH_DEBUG" do
5-
expect(described_class.config.silence_extra_tokens_warning).to eq(!OAuth2::OAUTH_DEBUG)
5+
expect(described_class.config.silence_extra_tokens_warning).to be(true)
66
end
77

88
describe ".configure" do

0 commit comments

Comments
Β (0)