diff --git "a/test/fast/Running \"nvm current\" should display current nvm environment." "b/test/fast/Running \"nvm current\" should display current nvm environment." index bc80cf6..09b8931 100755 --- "a/test/fast/Running \"nvm current\" should display current nvm environment." +++ "b/test/fast/Running \"nvm current\" should display current nvm environment." @@ -1,4 +1,6 @@ #!/bin/sh +die () { echo $@ ; exit 1; } + . ../../nvm.sh -nvm current | grep current +[[ $(nvm current) == *"current"* ]] || die "Failed to find current version"