1
1
mirror of https://github.com/casey/just.git synced 2024-11-23 02:44:56 +03:00
just/tests/completions.rs

20 lines
368 B
Rust
Raw Normal View History

2021-07-04 00:26:59 +03:00
use crate::common::*;
#[test]
fn output() {
2021-07-04 00:26:59 +03:00
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() {"));
}