mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Use our archives instead of pulling from gits.
This commit is contained in:
parent
8fee06b53e
commit
bee56cd5bc
2 changed files with 9 additions and 16 deletions
|
|
@ -3,16 +3,12 @@ from __future__ import unicode_literals
|
|||
import os.path
|
||||
|
||||
from pre_commit.languages.ruby import _install_rbenv
|
||||
from testing.util import skipif_slowtests_false
|
||||
|
||||
|
||||
@skipif_slowtests_false
|
||||
def test_install_rbenv(cmd_runner):
|
||||
_install_rbenv(cmd_runner)
|
||||
# Should have created rbenv directory
|
||||
assert os.path.exists(cmd_runner.path('rbenv'))
|
||||
# It should be a git checkout
|
||||
assert os.path.exists(cmd_runner.path('rbenv', '.git'))
|
||||
# We should have created our `activate` script
|
||||
activate_path = cmd_runner.path('rbenv', 'bin', 'activate')
|
||||
assert os.path.exists(activate_path)
|
||||
|
|
@ -27,7 +23,6 @@ def test_install_rbenv(cmd_runner):
|
|||
)
|
||||
|
||||
|
||||
@skipif_slowtests_false
|
||||
def test_install_rbenv_with_version(cmd_runner):
|
||||
_install_rbenv(cmd_runner, version='1.9.3p547')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue