From: csmoe <35686186+csmoe@users.noreply.github.com> Date: Tue, 1 May 2018 01:39:22 +0000 (+0800) Subject: add test for project name X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~1^2~30^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1edfd9b1902bb141c8936f36503a07c63e4b5625;p=cargo.git add test for project name --- diff --git a/tests/testsuite/new.rs b/tests/testsuite/new.rs index e5522f72d..1fab114bb 100644 --- a/tests/testsuite/new.rs +++ b/tests/testsuite/new.rs @@ -545,3 +545,18 @@ fn explicit_invalid_name_not_suggested() { ), ); } + +#[test] +fn explicit_project_name() { + assert_that( + cargo_process("new") + .arg("--lib") + .arg("foo") + .arg("--name") + .arg("bar") + .env("USER", "foo"), + execs() + .with_status(0) + .with_stderr("[CREATED] library `bar` project"), + ); +}