Browse Source

Rewrite with using here document syntax

pull/669/head
Yamashita, Yuu 10 years ago
parent
commit
36138f4901
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      test/prefix.bats

+ 4
- 3
test/prefix.bats View File

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

Loading…
Cancel
Save