mirror of
https://github.com/casey/just.git
synced 2024-11-26 11:43:43 +03:00
20 lines
360 B
Rust
20 lines
360 B
Rust
use super::*;
|
|
|
|
#[test]
|
|
fn output() {
|
|
let tempdir = tempdir();
|
|
|
|
let output = Command::new(executable_path("just"))
|
|
.arg("--completions")
|
|
.arg("bash")
|
|
.current_dir(tempdir.path())
|
|
.output()
|
|
.unwrap();
|
|
|
|
assert!(output.status.success());
|
|
|
|
let text = String::from_utf8_lossy(&output.stdout);
|
|
|
|
assert!(text.starts_with("_just() {"));
|
|
}
|