mirror of
https://github.com/casey/just.git
synced 2024-11-22 10:26:26 +03:00
44 lines
542 B
Rust
44 lines
542 B
Rust
use super::*;
|
|
|
|
#[test]
|
|
fn linewise() {
|
|
Test::new()
|
|
.justfile(
|
|
"
|
|
[no-cd]
|
|
foo:
|
|
cat bar
|
|
",
|
|
)
|
|
.current_dir("foo")
|
|
.tree(tree! {
|
|
foo: {
|
|
bar: "hello",
|
|
}
|
|
})
|
|
.stderr("cat bar\n")
|
|
.stdout("hello")
|
|
.run();
|
|
}
|
|
|
|
#[test]
|
|
fn shebang() {
|
|
Test::new()
|
|
.justfile(
|
|
"
|
|
[no-cd]
|
|
foo:
|
|
#!/bin/sh
|
|
cat bar
|
|
",
|
|
)
|
|
.current_dir("foo")
|
|
.tree(tree! {
|
|
foo: {
|
|
bar: "hello",
|
|
}
|
|
})
|
|
.stdout("hello")
|
|
.run();
|
|
}
|