mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-14 17:18:17 -07:00
test(fish): Improve test isolation (#1708)
This commit is contained in:
parent
53276973f7
commit
b8ecf71d77
@ -16,7 +16,7 @@ cleaned_path() {
|
||||
}
|
||||
|
||||
@test "exports ASDF_DIR" {
|
||||
run fish -c "
|
||||
run fish --no-config -c "
|
||||
set -e asdf
|
||||
set -e ASDF_DIR
|
||||
set -e ASDF_DATA_DIR
|
||||
@ -30,7 +30,7 @@ cleaned_path() {
|
||||
}
|
||||
|
||||
@test "adds asdf dirs to PATH" {
|
||||
run fish -c "
|
||||
run fish --no-config -c "
|
||||
set -e asdf
|
||||
set -e ASDF_DIR
|
||||
set -e ASDF_DATA_DIR
|
||||
@ -46,7 +46,7 @@ cleaned_path() {
|
||||
}
|
||||
|
||||
@test "does not add paths to PATH more than once" {
|
||||
run fish -c "
|
||||
run fish --no-config -c "
|
||||
set -e asdf
|
||||
set -e ASDF_DIR
|
||||
set -e ASDF_DATA_DIR
|
||||
@ -63,7 +63,7 @@ cleaned_path() {
|
||||
}
|
||||
|
||||
@test "defines the asdf function" {
|
||||
run fish -c "
|
||||
run fish --no-config -c "
|
||||
set -e asdf
|
||||
set -e ASDF_DIR
|
||||
set PATH $(cleaned_path)
|
||||
@ -76,7 +76,7 @@ cleaned_path() {
|
||||
}
|
||||
|
||||
@test "function calls asdf command" {
|
||||
run fish -c "
|
||||
run fish --no-config -c "
|
||||
set -e asdf
|
||||
set -x ASDF_DIR $(pwd) # checkstyle-ignore
|
||||
set PATH $(cleaned_path)
|
||||
|
Loading…
Reference in New Issue
Block a user