mirror of
https://git.ghostchain.io/proxmio/ghost-node.git
synced 2025-12-27 03:09:56 +00:00
inital commit, which is clearly not initial
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
This commit is contained in:
18
tests/invalid_order_arguments.rs
Executable file
18
tests/invalid_order_arguments.rs
Executable file
@@ -0,0 +1,18 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user