Skip to content

Commit 170ce27

Browse files
committed
🚨 lint update
1 parent 0f2aa62 commit 170ce27

File tree

2 files changed

+31
-31
lines changed

2 files changed

+31
-31
lines changed

.rubocop_gradual.lock

Lines changed: 18 additions & 18 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:536726727": [
31+
"spec/oauth2/access_token_spec.rb:2406469319": [
3232
[3, 1, 34, "RSpec/SpecFilePathFormat: Spec path should end with `o_auth2/access_token*_spec.rb`.", 1972107547],
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]
33+
[612, 13, 25, "RSpec/ContextWording: Context description should match /^when\\b/, /^with\\b/, or /^without\\b/.", 770233088],
34+
[682, 9, 101, "Style/ClassMethodsDefinitions: Use `class << self` to define a class method.", 3022740639],
35+
[686, 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],
@@ -41,26 +41,26 @@
4141
[69, 15, 38, "RSpec/ContextWording: Context description should match /^when\\b/, /^with\\b/, or /^without\\b/.", 1480816240],
4242
[79, 13, 23, "RSpec/ContextWording: Context description should match /^when\\b/, /^with\\b/, or /^without\\b/.", 2314399065]
4343
],
44-
"spec/oauth2/client_spec.rb:2242285093": [
44+
"spec/oauth2/client_spec.rb:623759711": [
4545
[6, 1, 29, "RSpec/SpecFilePathFormat: Spec path should end with `o_auth2/client*_spec.rb`.", 439549885],
4646
[174, 7, 492, "RSpec/NoExpectationExample: No expectation found in this example.", 1272021224],
4747
[193, 7, 592, "RSpec/NoExpectationExample: No expectation found in this example.", 3428877205],
4848
[206, 15, 20, "RSpec/ContextWording: Context description should match /^when\\b/, /^with\\b/, or /^without\\b/.", 2320605227],
4949
[221, 15, 20, "RSpec/ContextWording: Context description should match /^when\\b/, /^with\\b/, or /^without\\b/.", 1276531672],
5050
[236, 15, 43, "RSpec/ContextWording: Context description should match /^when\\b/, /^with\\b/, or /^without\\b/.", 1383956904],
5151
[251, 15, 43, "RSpec/ContextWording: Context description should match /^when\\b/, /^with\\b/, or /^without\\b/.", 3376202107],
52-
[867, 5, 360, "RSpec/NoExpectationExample: No expectation found in this example.", 536201463],
53-
[876, 5, 461, "RSpec/NoExpectationExample: No expectation found in this example.", 3392600621],
54-
[887, 5, 340, "RSpec/NoExpectationExample: No expectation found in this example.", 244592251],
55-
[932, 63, 2, "RSpec/BeEq: Prefer `be` over `eq`.", 5860785],
56-
[977, 11, 99, "Style/ClassMethodsDefinitions: Use `class << self` to define a class method.", 3084776886],
57-
[981, 11, 82, "Style/ClassMethodsDefinitions: Use `class << self` to define a class method.", 1524553529],
58-
[989, 7, 89, "RSpec/NoExpectationExample: No expectation found in this example.", 4609419],
59-
[1077, 11, 99, "Style/ClassMethodsDefinitions: Use `class << self` to define a class method.", 3084776886],
60-
[1081, 11, 82, "Style/ClassMethodsDefinitions: Use `class << self` to define a class method.", 1524553529],
61-
[1161, 17, 12, "RSpec/ContextWording: Context description should match /^when\\b/, /^with\\b/, or /^without\\b/.", 664794325],
62-
[1186, 5, 459, "RSpec/NoExpectationExample: No expectation found in this example.", 2216851076],
63-
[1196, 7, 450, "RSpec/NoExpectationExample: No expectation found in this example.", 2619808549]
52+
[865, 5, 360, "RSpec/NoExpectationExample: No expectation found in this example.", 536201463],
53+
[874, 5, 461, "RSpec/NoExpectationExample: No expectation found in this example.", 3392600621],
54+
[885, 5, 340, "RSpec/NoExpectationExample: No expectation found in this example.", 244592251],
55+
[930, 63, 2, "RSpec/BeEq: Prefer `be` over `eq`.", 5860785],
56+
[975, 11, 99, "Style/ClassMethodsDefinitions: Use `class << self` to define a class method.", 3084776886],
57+
[979, 11, 82, "Style/ClassMethodsDefinitions: Use `class << self` to define a class method.", 1524553529],
58+
[987, 7, 89, "RSpec/NoExpectationExample: No expectation found in this example.", 4609419],
59+
[1075, 11, 99, "Style/ClassMethodsDefinitions: Use `class << self` to define a class method.", 3084776886],
60+
[1079, 11, 82, "Style/ClassMethodsDefinitions: Use `class << self` to define a class method.", 1524553529],
61+
[1159, 17, 12, "RSpec/ContextWording: Context description should match /^when\\b/, /^with\\b/, or /^without\\b/.", 664794325],
62+
[1184, 5, 459, "RSpec/NoExpectationExample: No expectation found in this example.", 2216851076],
63+
[1194, 7, 450, "RSpec/NoExpectationExample: No expectation found in this example.", 2619808549]
6464
],
6565
"spec/oauth2/error_spec.rb:1209122273": [
6666
[23, 1, 28, "RSpec/SpecFilePathFormat: Spec path should end with `o_auth2/error*_spec.rb`.", 3385870076],
@@ -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:245212644": [
100+
"spec/oauth2_spec.rb:1758355750": [
101101
[3, 1, 21, "RSpec/SpecFilePathFormat: Spec path should end with `o_auth2*_spec.rb`.", 3359091140]
102102
]
103103
}

spec/oauth2/client_spec.rb

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -357,22 +357,22 @@
357357
end
358358

359359
context "when silence_extra_tokens_warning=false" do
360-
before do
361-
stub_const("OAuth2::OAUTH_DEBUG", true)
362-
end
360+
before do
361+
stub_const("OAuth2::OAUTH_DEBUG", true)
362+
end
363363

364-
it "outputs to $stdout when OAUTH_DEBUG=true" do
365-
output = capture(:stdout) do
366-
subject.request(:get, "/success")
367-
end
368-
logs = [
369-
"request: GET https://api.example.com/success",
370-
"response: Status 200",
371-
'response: Content-Type: "text/awesome"',
372-
]
373-
expect(output).to include(*logs)
364+
it "outputs to $stdout when OAUTH_DEBUG=true" do
365+
output = capture(:stdout) do
366+
subject.request(:get, "/success")
374367
end
368+
logs = [
369+
"request: GET https://api.example.com/success",
370+
"response: Status 200",
371+
'response: Content-Type: "text/awesome"',
372+
]
373+
expect(output).to include(*logs)
375374
end
375+
end
376376

377377
it "posts a body" do
378378
response = subject.request(:post, "/reflect", body: "foo=bar")

0 commit comments

Comments
 (0)