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 d709c10 commit e4345b2Copy full SHA for e4345b2
tests/testsuite/publish.rs
@@ -1217,7 +1217,7 @@ fn publish_dev_dep_no_version() {
1217
)
1218
.run();
1219
1220
- publish::validate_upload(
+ publish::validate_upload_with_contents(
1221
r#"
1222
{
1223
"authors": [],
@@ -1241,5 +1241,21 @@ fn publish_dev_dep_no_version() {
1241
"#,
1242
"foo-0.1.0.crate",
1243
&["Cargo.toml", "Cargo.toml.orig", "src/lib.rs"],
1244
+ &[(
1245
+ "Cargo.toml",
1246
+ r#"[..]
1247
+[package]
1248
+name = "foo"
1249
+version = "0.1.0"
1250
+authors = []
1251
+description = "foo"
1252
+homepage = "foo"
1253
+documentation = "foo"
1254
+license = "MIT"
1255
+repository = "foo"
1256
+
1257
+[dev-dependencies]
1258
+"#,
1259
+ )],
1260
);
1261
}
0 commit comments