Use multiple install command in the corresponding test
authorFredrik Larsson <nossralf@gmail.com>
Wed, 11 Oct 2017 19:34:44 +0000 (21:34 +0200)
committerFredrik Larsson <nossralf@gmail.com>
Sat, 28 Oct 2017 12:53:57 +0000 (14:53 +0200)
tests/install.rs

index b7935affd3bbbc82ba26facd0865a153c7c7a8c5..c4c722bfb7022b6618e27dbfd29ad78cc56459f4 100644 (file)
@@ -82,16 +82,15 @@ error: some crates failed to install
     assert_that(cargo_home(), has_installed_exe("foo"));
     assert_that(cargo_home(), has_installed_exe("bar"));
 
-    assert_that(cargo_process("uninstall").arg("foo"),
+    assert_that(cargo_process("uninstall").args(&["foo", "bar"]),
                 execs().with_status(0).with_stderr(&format!("\
 [REMOVING] {home}[..]bin[..]foo[..]
-",
-        home = cargo_home().display())));
-    assert_that(cargo_process("uninstall").arg("bar"),
-                execs().with_status(0).with_stderr(&format!("\
 [REMOVING] {home}[..]bin[..]bar[..]
+   
+Summary: Successfully uninstalled foo, bar!
 ",
         home = cargo_home().display())));
+
     assert_that(cargo_home(), is_not(has_installed_exe("foo")));
     assert_that(cargo_home(), is_not(has_installed_exe("bar")));
 }