@@ -5,7 +5,7 @@ use crate::tests::util::github::next_gh_id;
5
5
use crate :: tests:: util:: { MockCookieUser , RequestHelper } ;
6
6
use crate :: util:: token:: HashedToken ;
7
7
use chrono:: { DateTime , Utc } ;
8
- use crates_io_github:: GithubUser ;
8
+ use crates_io_github:: GitHubUser ;
9
9
use diesel:: prelude:: * ;
10
10
use diesel_async:: RunQueryDsl ;
11
11
use http:: StatusCode ;
@@ -30,7 +30,7 @@ async fn updating_existing_user_doesnt_change_api_token() -> anyhow::Result<()>
30
30
let token = token. plaintext ( ) ;
31
31
32
32
// Reuse gh_id but use new gh_login and gh_access_token
33
- let gh_user = GithubUser {
33
+ let gh_user = GitHubUser {
34
34
id : gh_id,
35
35
login : "bar" . to_string ( ) ,
36
36
name : None ,
@@ -67,10 +67,10 @@ async fn github_without_email_does_not_overwrite_email() -> anyhow::Result<()> {
67
67
68
68
// Simulate logging in via GitHub with an account that has no email.
69
69
70
- // Because faking GitHub is terrible, call what GithubUser ::save_to_database does directly.
70
+ // Because faking GitHub is terrible, call what GitHubUser ::save_to_database does directly.
71
71
// Don't use app.db_new_user because it adds a verified email.
72
72
let gh_id = next_gh_id ( ) ;
73
- let gh_user = GithubUser {
73
+ let gh_user = GitHubUser {
74
74
id : gh_id,
75
75
login : "arbitrary_username" . to_string ( ) ,
76
76
name : None ,
@@ -94,7 +94,7 @@ async fn github_without_email_does_not_overwrite_email() -> anyhow::Result<()> {
94
94
95
95
// Simulate the same user logging in via GitHub again, still with no email in GitHub.
96
96
97
- let gh_user = GithubUser {
97
+ let gh_user = GitHubUser {
98
98
id : gh_id,
99
99
login : "arbitrary_username" . to_string ( ) ,
100
100
name : None ,
@@ -135,7 +135,7 @@ async fn github_with_email_does_not_overwrite_email() -> anyhow::Result<()> {
135
135
136
136
let emails = app. as_inner ( ) . emails . clone ( ) ;
137
137
138
- let gh_user = GithubUser {
138
+ let gh_user = GitHubUser {
139
139
// Use the same github ID to link to the existing account
140
140
id : model. gh_id ,
141
141
login : "arbitrary_username" . to_string ( ) ,
@@ -193,7 +193,7 @@ async fn test_confirm_user_email() -> anyhow::Result<()> {
193
193
194
194
let emails = & app. as_inner ( ) . emails ;
195
195
196
- let gh_user = GithubUser {
196
+ let gh_user = GitHubUser {
197
197
id : next_gh_id ( ) ,
198
198
login : "arbitrary_username" . to_string ( ) ,
199
199
name : None ,
@@ -239,7 +239,7 @@ async fn test_existing_user_email() -> anyhow::Result<()> {
239
239
240
240
let emails = & app. as_inner ( ) . emails ;
241
241
242
- let gh_user = GithubUser {
242
+ let gh_user = GitHubUser {
243
243
id : next_gh_id ( ) ,
244
244
login : "arbitrary_username" . to_string ( ) ,
245
245
name : None ,
0 commit comments