Skip to content

Commit cf621fd

Browse files
committed
modify test
1 parent 64c69df commit cf621fd

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

tests/testsuite/publish.rs

+26
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,32 @@ See [..]
185185
validate_upload_foo();
186186
}
187187

188+
#[cargo_test]
189+
fn simple_with_index() {
190+
registry::init();
191+
192+
let p = project()
193+
.file(
194+
"Cargo.toml",
195+
r#"
196+
[project]
197+
name = "foo"
198+
version = "0.0.1"
199+
authors = []
200+
license = "MIT"
201+
description = "foo"
202+
"#,
203+
)
204+
.file("src/main.rs", "fn main() {}")
205+
.build();
206+
207+
p.cargo("publish --no-verify --token sekrit --index")
208+
.arg(registry_url().to_string())
209+
.run();
210+
211+
validate_upload_foo();
212+
}
213+
188214
#[cargo_test]
189215
fn git_deps() {
190216
registry::init();

0 commit comments

Comments
 (0)