2022-06-18 21:56:31 -07:00
|
|
|
use super::*;
|
2020-01-15 01:20:38 -08:00
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn output() {
|
2021-07-03 14:26:59 -07:00
|
|
|
let tempdir = tempdir();
|
2020-02-20 06:07:25 -08:00
|
|
|
|
2020-01-15 01:20:38 -08:00
|
|
|
let output = Command::new(executable_path("just"))
|
|
|
|
.arg("--completions")
|
|
|
|
.arg("bash")
|
2020-02-20 06:07:25 -08:00
|
|
|
.current_dir(tempdir.path())
|
2020-01-15 01:20:38 -08:00
|
|
|
.output()
|
|
|
|
.unwrap();
|
|
|
|
|
|
|
|
assert!(output.status.success());
|
|
|
|
|
|
|
|
let text = String::from_utf8_lossy(&output.stdout);
|
|
|
|
|
|
|
|
assert!(text.starts_with("_just() {"));
|
|
|
|
}
|