diff --git a/test/doctor.bats b/test/doctor.bats index ed73297..7dfbf34 100755 --- a/test/doctor.bats +++ b/test/doctor.bats @@ -50,7 +50,7 @@ load test_helper @test "reports shims in PATH - OK" { with_nodenv - with_nodenv_root + with_nodenv_shims run nodenv-doctor @@ -113,7 +113,7 @@ load test_helper @test "reports clean setup" { with_nodenv - with_nodenv_root + with_nodenv_shims with_nodenv_plugin nodenv-install with_nodes 10.2.3 diff --git a/test/test_helper.bash b/test/test_helper.bash index e386515..8ccf469 100644 --- a/test/test_helper.bash +++ b/test/test_helper.bash @@ -35,7 +35,7 @@ with_nodenv() { PATH="$PWD/node_modules/.bin:$PATH" } -with_nodenv_root() { +with_nodenv_shims() { local shims_path="$NODENV_ROOT/shims" mkdir -p "$shims_path" PATH="$shims_path:$PATH"