Skip to content

Commit

Permalink
modify test
Browse files Browse the repository at this point in the history
  • Loading branch information
heisen-li committed Dec 2, 2021
1 parent 64c69df commit cf621fd
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tests/testsuite/publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,32 @@ See [..]
validate_upload_foo();
}

#[cargo_test]
fn simple_with_index() {
registry::init();

let p = project()
.file(
"Cargo.toml",
r#"
[project]
name = "foo"
version = "0.0.1"
authors = []
license = "MIT"
description = "foo"
"#,
)
.file("src/main.rs", "fn main() {}")
.build();

p.cargo("publish --no-verify --token sekrit --index")
.arg(registry_url().to_string())
.run();

validate_upload_foo();
}

#[cargo_test]
fn git_deps() {
registry::init();
Expand Down

0 comments on commit cf621fd

Please sign in to comment.