mirror of
https://github.com/sstephenson/bats.git
synced 2024-12-26 06:29:47 +01:00
Add test
This commit is contained in:
parent
ff3b8d0115
commit
2878724ce3
|
@ -262,3 +262,13 @@ fixtures bats
|
|||
[ $status -eq 0 ]
|
||||
[ "${lines[1]}" = "ok 1 loop_func" ]
|
||||
}
|
||||
|
||||
@test "abs_dirname with symlink to same current directory" {
|
||||
cd "$TMP"
|
||||
ln -s $(which bats) bats
|
||||
ln -s bats bats-linked
|
||||
run ./bats-linked "$FIXTURE_ROOT/loop_keep_IFS.bats"
|
||||
[ $status -eq 0 ]
|
||||
expected_lines=("1..1" "ok 1 loop_func")
|
||||
[ "${lines}" = "${expected_lines}" ]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user