MrBoec/tests/invalid_order_arguments.rs
Uncle Stretch 66719626bb
inital commit, which is clearly not initial
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
2024-10-03 15:38:52 +03:00

19 lines
426 B
Rust
Executable File

use assert_cmd::cargo::cargo_bin;
use std::process::Command;
use temfile::tempdir;
#[test]
#[cfg(unix)]
fn invalid_order_arguments() {
let tmpdir = tempdir().expect("could not create temp dir");
let status = Command::new(cargo_bin("ghost"))
.args(["--dev", "invalid_order_arguments", "-d"])
.arg(tmpdir.path())
.arg("-y")
.status()
.unwrap();
assert!(!status.success);
}