tests(help): Fix assertion by using the full line text
authorKlaus Purer <klaus.purer@gmail.com>
Sat, 31 Mar 2018 09:33:14 +0000 (11:33 +0200)
committerKlaus Purer <klaus.purer@gmail.com>
Sat, 31 Mar 2018 09:33:14 +0000 (11:33 +0200)
tests/testsuite/cargo_command.rs

index eecf74a8457725bc33ad5f9c38a5038b71b279ff..d5ea78fa923126e3164158716bf984c5f5c6e84c 100644 (file)
@@ -338,8 +338,8 @@ fn explain() {
 fn z_flags_help() {
     assert_that(
         cargo_process().arg("-Z").arg("help"),
-        execs()
-            .with_status(0)
-            .with_stdout_contains("-Z unstable-options"),
+        execs().with_status(0).with_stdout_contains(
+            "    -Z unstable-options -- Allow the usage of unstable options such as --registry",
+        ),
     );
 }