Add missing --init
test (#543)
This commit is contained in:
parent
e948f11784
commit
d157c87460
@ -65,6 +65,27 @@ fn invocation_directory() {
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parent_dir() {
|
||||
let tmp = tmptree! {
|
||||
".git": {},
|
||||
sub: {},
|
||||
};
|
||||
|
||||
let output = Command::new(executable_path("just"))
|
||||
.current_dir(tmp.path().join("sub"))
|
||||
.arg("--init")
|
||||
.output()
|
||||
.unwrap();
|
||||
|
||||
assert!(output.status.success());
|
||||
|
||||
assert_eq!(
|
||||
fs::read_to_string(tmp.path().join("justfile")).unwrap(),
|
||||
EXPECTED
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn alternate_marker() {
|
||||
let tmp = tmptree! {
|
||||
|
Loading…
Reference in New Issue
Block a user