mirror of
https://github.com/casey/just.git
synced 2024-11-26 11:43:43 +03:00
30 lines
534 B
Rust
30 lines
534 B
Rust
use super::*;
|
|
|
|
#[test]
|
|
fn argument_with_different_path_prefix_is_allowed() {
|
|
Test::new()
|
|
.justfile("foo bar:")
|
|
.args(["./foo", "../bar"])
|
|
.run();
|
|
}
|
|
|
|
#[test]
|
|
fn passing_dot_as_argument_is_allowed() {
|
|
Test::new()
|
|
.justfile(
|
|
"
|
|
say ARG:
|
|
echo {{ARG}}
|
|
",
|
|
)
|
|
.write(
|
|
"child/justfile",
|
|
"say ARG:\n '{{just_executable()}}' ../say {{ARG}}",
|
|
)
|
|
.current_dir("child")
|
|
.args(["say", "."])
|
|
.stdout(".\n")
|
|
.stderr_regex("'.*' ../say .\necho .\n")
|
|
.run();
|
|
}
|