tests(help): Fix assertion by using the full line text

This commit is contained in:
Klaus Purer 2018-03-31 11:33:14 +02:00
parent a4104914ea
commit 9af095adab

View 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",
),
);
}