mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Support language_version for ruby as well.
This commit is contained in:
parent
511de4fe32
commit
02a79bf1c3
8 changed files with 72 additions and 15 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue