Skip to content

Commit

Permalink
fix test_cargo_publish
Browse files Browse the repository at this point in the history
  • Loading branch information
matklad committed May 20, 2016
1 parent 4057f43 commit 1c991f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_cargo_publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ test!(simple {
assert_that(p.cargo_process("publish").arg("--no-verify"),
execs().with_status(0).with_stderr(&format!("\
[UPDATING] registry `{reg}`
[WARNING] manifest has no documentation, [..]
[PACKAGING] foo v0.0.1 ({dir})
[UPLOADING] foo v0.0.1 ({dir})
",
Expand Down Expand Up @@ -100,6 +101,7 @@ test!(git_deps {

assert_that(p.cargo_process("publish").arg("-v").arg("--no-verify"),
execs().with_status(101).with_stderr("\
[UPDATING] registry [..]
[ERROR] all dependencies must come from the same source.
dependency `foo` comes from git://path/to/nowhere instead
"));
Expand Down Expand Up @@ -129,6 +131,7 @@ test!(path_dependency_no_version {

assert_that(p.cargo_process("publish"),
execs().with_status(101).with_stderr("\
[UPDATING] registry [..]
[ERROR] all path dependencies must have a version specified when publishing.
dependency `bar` does not specify a version
"));
Expand Down

0 comments on commit 1c991f8

Please sign in to comment.