Support language_version for ruby as well.

This commit is contained in:
Anthony Sottile 2014-06-03 13:28:20 -07:00
parent 511de4fe32
commit 02a79bf1c3
8 changed files with 72 additions and 15 deletions

View file

@ -15,7 +15,21 @@ def test_install_rbenv(cmd_runner):
activate_path = cmd_runner.path('rbenv', 'bin', 'activate')
assert os.path.exists(activate_path)
# Should be able to activate using our script and access the install method
# Should be able to activate using our script and access rbenv
cmd_runner.run(
[
'bash',
'-c',
'. {prefix}/rbenv/bin/activate && rbenv --help',
],
)
@skipif_slowtests_false
def test_install_rbenv_with_version(cmd_runner):
_install_rbenv(cmd_runner, version='1.9.3p547')
# Should be able to activate and use rbenv install
cmd_runner.run(
[
'bash',