File tree 2 files changed +17
-15
lines changed
2 files changed +17
-15
lines changed Original file line number Diff line number Diff line change 2
2
remote: https://rubygems.org/
3
3
specs:
4
4
ast (2.4.2 )
5
+ json (2.6.2 )
5
6
parallel (1.22.1 )
6
- parser (3.1.2.0 )
7
+ parser (3.1.2.1 )
7
8
ast (~> 2.4.1 )
8
9
rainbow (3.1.1 )
9
- regexp_parser (2.5 .0 )
10
+ regexp_parser (2.6 .0 )
10
11
rexml (3.2.5 )
11
- rubocop (1.30.1 )
12
+ rubocop (1.36.0 )
13
+ json (~> 2.3 )
12
14
parallel (~> 1.10 )
13
- parser (>= 3.1.0.0 )
15
+ parser (>= 3.1.2.1 )
14
16
rainbow (>= 2.2.2 , < 4.0 )
15
17
regexp_parser (>= 1.8 , < 3.0 )
16
18
rexml (>= 3.2.5 , < 4.0 )
17
- rubocop-ast (>= 1.18.0 , < 2.0 )
19
+ rubocop-ast (>= 1.20.1 , < 2.0 )
18
20
ruby-progressbar (~> 1.7 )
19
21
unicode-display_width (>= 1.4.0 , < 3.0 )
20
- rubocop-ast (1.18 .0 )
22
+ rubocop-ast (1.21 .0 )
21
23
parser (>= 3.1.1.0 )
22
- rubocop-discourse (2.5 .0 )
24
+ rubocop-discourse (3 .0 )
23
25
rubocop (>= 1.1.0 )
24
26
rubocop-rspec (>= 2.0.0 )
25
- rubocop-rspec (2.11.1 )
26
- rubocop (~> 1.19 )
27
+ rubocop-rspec (2.13.2 )
28
+ rubocop (~> 1.33 )
27
29
ruby-progressbar (1.11.0 )
28
- unicode-display_width (2.1 .0 )
30
+ unicode-display_width (2.3 .0 )
29
31
30
32
PLATFORMS
31
33
arm64-darwin-20
Original file line number Diff line number Diff line change 3
3
require 'rails_helper'
4
4
5
5
describe OAuth2BasicAuthenticator do
6
- context 'after_authenticate' do
6
+ describe 'after_authenticate' do
7
7
let ( :user ) { Fabricate ( :user ) }
8
8
let ( :authenticator ) { OAuth2BasicAuthenticator . new }
9
9
57
57
expect ( result . email_valid ) . to eq ( false )
58
58
end
59
59
60
- context "fetch_user_details" do
60
+ describe "fetch_user_details" do
61
61
before ( :each ) do
62
62
SiteSetting . oauth2_fetch_user_details = true
63
63
SiteSetting . oauth2_user_json_url = "https://provider.com/user"
126
126
end
127
127
end
128
128
129
- context 'avatar downloading' do
129
+ describe 'avatar downloading' do
130
130
before do
131
131
SiteSetting . queue_jobs = true
132
132
SiteSetting . oauth2_fetch_user_details = true
165
165
auth_result = nil
166
166
expect {
167
167
auth_result = authenticator . after_authenticate ( auth )
168
- } . to change { job_klass . jobs . count } . by ( 0 )
168
+ } . not_to change { job_klass . jobs . count }
169
169
170
170
expect {
171
171
authenticator . after_create_account ( user , auth_result )
258
258
expect ( result ) . to eq 'http://example.com/1.png'
259
259
end
260
260
261
- context 'token_callback' do
261
+ describe 'token_callback' do
262
262
let ( :user ) { Fabricate ( :user ) }
263
263
let ( :strategy ) { OmniAuth ::Strategies ::Oauth2Basic . new ( { } ) }
264
264
let ( :authenticator ) { OAuth2BasicAuthenticator . new }
You can’t perform that action at this time.
0 commit comments