瀏覽代碼

Add explicit shebang to executable for testing

pull/669/head
Yamashita, Yuu 10 年之前
父節點
當前提交
83e874a165
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      test/prefix.bats

+ 3
- 1
test/prefix.bats 查看文件

@ -26,7 +26,9 @@ load test_helper
@test "prefix for system in /" {
mkdir -p "${BATS_TEST_DIRNAME}/libexec"
echo "echo /bin/ruby" >"${BATS_TEST_DIRNAME}/libexec/rbenv-which"
{ echo "#!/bin/sh"
echo "echo /bin/ruby"
} >"${BATS_TEST_DIRNAME}/libexec/rbenv-which"
chmod +x "${BATS_TEST_DIRNAME}/libexec/rbenv-which"
RBENV_VERSION="system" run rbenv-prefix
assert_success "/"

Loading…
取消
儲存