We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d9f11c commit 43549a8Copy full SHA for 43549a8
src/tests/team.rs
@@ -149,6 +149,23 @@ fn add_team_mixed_case() {
149
.unwrap();
150
assert_eq!(krate.owners(&*conn).unwrap().len(), 2);
151
}
152
+
153
+ ok_resp!(
154
+ middle.call(
155
+ req.with_path("/api/v1/crates/foo_mixed_case/owners")
156
+ .with_method(Method::Get)
157
+ .with_body(body.as_bytes()),
158
+ )
159
+ );
160
161
+ {
162
+ let conn = app.diesel_database.get().unwrap();
163
+ let krate = Crate::by_name("foo_mixed_case")
164
+ .first::<Crate>(&*conn)
165
+ .unwrap();
166
+ let owner = &krate.owners(&*conn).unwrap()[1];
167
+ assert_eq!(owner.login(), owner.login().to_lowercase());
168
+ }
169
170
171
// Test adding team as owner when on it
0 commit comments