Skip to content

Commit f839c62

Browse files
committed
✅ Fix tests
1 parent 3e3e84d commit f839c62

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.rubocop_gradual.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
[130, 3, 52, "Gemspec/DependencyVersion: Dependency version specification is required.", 3163430777],
2929
[131, 3, 48, "Gemspec/DependencyVersion: Dependency version specification is required.", 425065368]
3030
],
31-
"spec/oauth2/access_token_spec.rb:388877639": [
31+
"spec/oauth2/access_token_spec.rb:536726727": [
3232
[3, 1, 34, "RSpec/SpecFilePathFormat: Spec path should end with `o_auth2/access_token*_spec.rb`.", 1972107547],
33-
[594, 13, 25, "RSpec/ContextWording: Context description should match /^when\\b/, /^with\\b/, or /^without\\b/.", 770233088],
34-
[664, 9, 101, "Style/ClassMethodsDefinitions: Use `class << self` to define a class method.", 3022740639],
35-
[668, 9, 79, "Style/ClassMethodsDefinitions: Use `class << self` to define a class method.", 2507338967]
33+
[602, 13, 25, "RSpec/ContextWording: Context description should match /^when\\b/, /^with\\b/, or /^without\\b/.", 770233088],
34+
[672, 9, 101, "Style/ClassMethodsDefinitions: Use `class << self` to define a class method.", 3022740639],
35+
[676, 9, 79, "Style/ClassMethodsDefinitions: Use `class << self` to define a class method.", 2507338967]
3636
],
3737
"spec/oauth2/authenticator_spec.rb:853320290": [
3838
[3, 1, 36, "RSpec/SpecFilePathFormat: Spec path should end with `o_auth2/authenticator*_spec.rb`.", 819808017],

spec/oauth2/access_token_spec.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@
5050
end
5151
end
5252

53+
before do
54+
stub_const("OAuth2::OAUTH_DEBUG", true)
55+
end
56+
5357
it "warns on STDERR" do
5458
msg = <<-MSG.lstrip
5559
OAuth2::AccessToken.from_hash: `hash` contained more than one 'token' key ([:access_token, :id_token]); using :access_token.
@@ -89,6 +93,10 @@
8993
end
9094
end
9195

96+
before do
97+
stub_const("OAuth2::OAUTH_DEBUG", true)
98+
end
99+
92100
let(:hash) do
93101
{
94102
id_token: "confusing bug here",

0 commit comments

Comments
 (0)