Migrate reinitialization test to Cucumber.

This commit is contained in:
Raphael Reitzig 2020-05-26 04:22:01 +02:00
parent 56bc601b17
commit 0a948c81c1
6 changed files with 67 additions and 30 deletions

View file

@ -0,0 +1,13 @@
Feature: Corner Cases
Scenario: SDKMAN_DIR unset
Given environment variable SDKMAN_DIR is not set
When a new Fish shell is launched
Then environment variable SDKMAN_DIR has the original value
Scenario: SDKMAN_DIR set to a location the current user can't write at
Given environment variable SDKMAN_DIR is set to "/"
When a new Fish shell is launched
Then environment variable SDKMAN_DIR has the original value
# TODO: add test that fails if `test` in conf.d/sdk.fish:80 errors (cf issue #28 et al.)