From 83e874a165a9aae7a174308765ed64013e62d0d3 Mon Sep 17 00:00:00 2001 From: "Yamashita, Yuu" Date: Wed, 3 Aug 2016 01:33:35 +0000 Subject: [PATCH] Add explicit shebang to executable for testing --- test/prefix.bats | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/prefix.bats b/test/prefix.bats index 87ab9864..47541e2a 100644 --- a/test/prefix.bats +++ b/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 "/"