mirror of
https://github.com/rust-lang/cargo
synced 2024-08-28 11:50:23 +00:00
chore: Update tests for latest clap
This commit is contained in:
parent
b592ba4d97
commit
5f30808d00
|
@ -62,7 +62,7 @@ toml_edit = { version = "0.14.3", features = ["serde", "easy", "perf"] }
|
||||||
unicode-xid = "0.2.0"
|
unicode-xid = "0.2.0"
|
||||||
url = "2.2.2"
|
url = "2.2.2"
|
||||||
walkdir = "2.2"
|
walkdir = "2.2"
|
||||||
clap = "4.0.4"
|
clap = "4.0.15"
|
||||||
unicode-width = "0.1.5"
|
unicode-width = "0.1.5"
|
||||||
openssl = { version = '0.10.11', optional = true }
|
openssl = { version = '0.10.11', optional = true }
|
||||||
im-rc = "15.0.0"
|
im-rc = "15.0.0"
|
||||||
|
|
|
@ -1910,7 +1910,7 @@ fn cargo_metadata_bad_version() {
|
||||||
.with_status(1)
|
.with_status(1)
|
||||||
.with_stderr_contains(
|
.with_stderr_contains(
|
||||||
"\
|
"\
|
||||||
error: \"2\" isn't a valid value for '--format-version <VERSION>'
|
error: '2' isn't a valid value for '--format-version <VERSION>'
|
||||||
[possible values: 1]
|
[possible values: 1]
|
||||||
",
|
",
|
||||||
)
|
)
|
||||||
|
|
|
@ -380,7 +380,7 @@ fn new_default_edition() {
|
||||||
#[cargo_test]
|
#[cargo_test]
|
||||||
fn new_with_bad_edition() {
|
fn new_with_bad_edition() {
|
||||||
cargo_process("new --edition something_else foo")
|
cargo_process("new --edition something_else foo")
|
||||||
.with_stderr_contains("error: \"something_else\" isn't a valid value[..]")
|
.with_stderr_contains("error: 'something_else' isn't a valid value[..]")
|
||||||
.with_status(1)
|
.with_status(1)
|
||||||
.run();
|
.run();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue