Mislav Marohnić
d2eace00c9
Add more tests for version-file-read
il y a 12 ans
Mislav Marohnić
878bd87328
reliably detect parent shell in `rbenv init`
`$SHELL` variable is a terrible way of detecting the current shell
because it's not even supposed to reflect the current shell; it's meant
for keeping the value of the default shell for programs to start.
If an explicit `<shell>` argument wasn't passed to `rbenv init`, it
tries to detect the shell by getting the name of its parent process. If
this fails, it falls back on the value of `$SHELL` as before.
Furthermore, `rbenv init` will set the RBENV_SHELL variable in the
current shell to the value of the detected shell so that `sh-shell` and
`sh-rehash` commands don't have to repeat the detection.
il y a 12 ans
Mislav Marohnić
f4fade3d26
better error message for `rbenv prefix system`
Have `rbenv prefix` handle the case where system Ruby is not installed,
i.e. `rbenv which ruby` doesn't find ruby in PATH.
Fixes #362
il y a 12 ans
Mislav Marohnić
e97326845c
Ubuntu fix: don't use `.` in place of `source`
If `rbenv init -` outputs `.` in place of `source` and that gets eval'd
by the desktop manager via `~/.profile`, it chokes and prevents the user
from logging in.
Fixes #457
il y a 12 ans
Mislav Marohnić
31fab8cdae
cleanup in fish
Use process subtitution syntax:
. (rbenv init -|psub)
instead of:
eval (rbenv init -)
because the latter doesn't work well with newlines.
il y a 12 ans
Yamashita Yuu
5bfec84432
add fish shell support
il y a 13 ans
Jeffrey 'jf' Lim
caa4a8e228
fix rehash when paths have spaces in them
fixes #450
il y a 12 ans
Mislav Marohnić
bdcc2e1790
check if completion script is readable
fixes #444
il y a 13 ans
Mislav Marohnić
8b043038b8
ensure cleaner PATH in test environment
il y a 13 ans
Mislav Marohnić
e93ab45dc3
work around bug in git 1.8.2.1 in tests
Making empty commits in tests blocked by opening the default text
editor, waiting for a message which we specified to be empty.
http://thread.gmane.org/gmane.comp.version-control.git/225529
il y a 13 ans
Mislav Marohnić
060f141b21
test that IFS in hooks is correct
closes #379
il y a 13 ans
Mislav Marohnić
bc1049f5ae
improve `versions` tests by cd'ing into a clean slate
il y a 13 ans
Mislav Marohnić
ab9ebb9d0d
add tests for `help` and `rbenv --version`
il y a 13 ans
Mislav Marohnić
ab197ef51e
add tests for version commands
il y a 13 ans
Mislav Marohnić
7fc5f46bbb
undo `assert_output_lines` in tests
It was a dumb idea and it wasn't even implemented perfectly.
il y a 13 ans
Mislav Marohnić
969af1567a
add tests for rehash, whence, which
il y a 13 ans
Mislav Marohnić
7a10b64cf7
better emulate `ruby -S` behavior in testing
Per https://github.com/ruby/ruby/blob/7d3db3c/ruby.c#L1383-1391
il y a 13 ans
Mislav Marohnić
f6db678b20
un-indent shebang for test executables
il y a 13 ans
Mislav Marohnić
97290b2442
simplify iterating through arglist
il y a 13 ans
Mislav Marohnić
b8504ed2a9
saner assertions for multiline output
il y a 13 ans
Mislav Marohnić
4d96d0a6c6
add tests for completions
il y a 13 ans
Mislav Marohnić
9b58b6642e
test completions for exec
il y a 13 ans
Mislav Marohnić
45f651ab00
hack around the hack around bash `echo`
il y a 13 ans
Mislav Marohnić
400fe31061
fix exec fails for invalid version
il y a 13 ans
Mislav Marohnić
4b6ab0389b
add tests for exec
il y a 13 ans
Mislav Marohnić
baf7656d2f
fix iterating through paths that have spaces in them
Fixes #344 , #196
il y a 13 ans
Mislav Marohnić
6a6ae8ae46
tests for rbenv-init
il y a 13 ans
Mislav Marohnić
ea3203dbab
fix resolving symlinks in rbenv-hooks
il y a 13 ans
Mislav Marohnić
a81ace2ccb
add hook lookup tests
il y a 13 ans
Mislav Marohnić
bb6bccb782
tests galore
il y a 13 ans
Mislav Marohnić
1fe59e41ea
error message when rehash fails on non-writable directory
Fixes #238
il y a 13 ans