mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-07 20:31:01 -05:00
Rewrite with using here document syntax
This commit is contained in:
parent
83e874a165
commit
36138f4901
1 changed files with 4 additions and 3 deletions
|
@ -26,9 +26,10 @@ load test_helper
|
||||||
|
|
||||||
@test "prefix for system in /" {
|
@test "prefix for system in /" {
|
||||||
mkdir -p "${BATS_TEST_DIRNAME}/libexec"
|
mkdir -p "${BATS_TEST_DIRNAME}/libexec"
|
||||||
{ echo "#!/bin/sh"
|
cat >"${BATS_TEST_DIRNAME}/libexec/rbenv-which" <<OUT
|
||||||
echo "echo /bin/ruby"
|
#!/bin/sh
|
||||||
} >"${BATS_TEST_DIRNAME}/libexec/rbenv-which"
|
echo /bin/ruby
|
||||||
|
OUT
|
||||||
chmod +x "${BATS_TEST_DIRNAME}/libexec/rbenv-which"
|
chmod +x "${BATS_TEST_DIRNAME}/libexec/rbenv-which"
|
||||||
RBENV_VERSION="system" run rbenv-prefix
|
RBENV_VERSION="system" run rbenv-prefix
|
||||||
assert_success "/"
|
assert_success "/"
|
||||||
|
|
Loading…
Reference in a new issue