Skip to content

Commit

Permalink
Add test that passing dot as argument between justfiles works
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Jan 25, 2023
1 parent 94a93c9 commit 47d0cb3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/search_arguments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,23 @@ fn argument_with_different_path_prefix_is_allowed() {
.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(".*just ../say .\necho .\n")
.run();
}

0 comments on commit 47d0cb3

Please sign in to comment.