projects
/
cargo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6431336
)
Test bailout when specifying --bin during uninstall of multiple packages
author
Fredrik Larsson
<nossralf@gmail.com>
Wed, 11 Oct 2017 19:35:30 +0000
(21:35 +0200)
committer
Fredrik Larsson
<nossralf@gmail.com>
Sat, 28 Oct 2017 12:53:57 +0000
(14:53 +0200)
tests/install.rs
patch
|
blob
|
history
diff --git
a/tests/install.rs
b/tests/install.rs
index c4c722bfb7022b6618e27dbfd29ad78cc56459f4..2353f31a38ed925fbfd657392686bd63f01c13c8 100644
(file)
--- a/
tests/install.rs
+++ b/
tests/install.rs
@@
-962,3
+962,11
@@
fn test_install_git_cannot_be_a_base_url() {
error: invalid url `github.com:rust-lang-nursery/rustfmt.git`: cannot-be-a-base-URLs are not supported
"));
}
+
+#[test]
+fn uninstall_multiple_and_specifying_bin() {
+ assert_that(cargo_process("uninstall").args(&["foo", "bar"]).arg("--bin").arg("baz"),
+ execs().with_status(101).with_stderr("\
+error: A binary can only be associated with a single installed package, specifying multiple specs with --bin is redundant.
+"));
+}