fix directory arg handling
1 file changed, 9 insertions(+), 0 deletions(-)
changed files
M tests/scriptura.fish → tests/scriptura.fish
@@ -151,6 +151,15 @@ chmod +x "$test_root/list_test" scriptura 2>&1 | string match --regex "list_test" ) +# Test: directory listing with argument shows children +@test "directory listing with argument shows children" -n ( + set --global --export SCRIPTURA_ROOT $test_root + mkdir -p "$test_root/test_dir" + printf "#!/usr/bin/env fish\n# Test script\n" > "$test_root/test_dir/test_script" + chmod +x "$test_root/test_dir/test_script" + scriptura test_dir 2>&1 | string match "test_script*" +) + # Test: help file is used for directories @test "help file is used for directories" ( set --global --export SCRIPTURA_ROOT $test_root