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 da22871 commit b1b7792Copy full SHA for b1b7792
src/tests/krate.rs
@@ -1430,13 +1430,15 @@ fn yank_by_a_non_owner_fails() {
1430
let another_user = app.db_new_user("bar");
1431
let another_user = another_user.as_model();
1432
app.db(|conn| {
1433
- CrateBuilder::new("foo_not", another_user.id).expect_build(conn);
+ CrateBuilder::new("foo_not", another_user.id)
1434
+ .version("1.0.0")
1435
+ .expect_build(conn);
1436
});
1437
1438
let json = token.yank("foo_not", "1.0.0").bad_with_status(200);
1439
assert_eq!(
1440
json.errors[0].detail,
- "crate `foo_not` does not have a version `1.0.0`"
1441
+ "must already be an owner to yank or unyank"
1442
);
1443
}
1444
0 commit comments