summaryrefslogtreecommitdiffstats
path: root/tests/repository_test.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-07-14 13:16:19 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-07-14 13:16:19 +0000
commitdea1ff8e8ce88840434d53977ff62683240f5b8f (patch)
tree60da4e1c735a2d2d89907609c5bb1b1638c4c648 /tests/repository_test.py
parentAdding upstream version 2.19.0. (diff)
downloadpre-commit-dea1ff8e8ce88840434d53977ff62683240f5b8f.tar.xz
pre-commit-dea1ff8e8ce88840434d53977ff62683240f5b8f.zip
Adding upstream version 2.20.0.upstream/2.20.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/repository_test.py')
-rw-r--r--tests/repository_test.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/repository_test.py b/tests/repository_test.py
index 3729ab1..11d452c 100644
--- a/tests/repository_test.py
+++ b/tests/repository_test.py
@@ -332,6 +332,13 @@ def test_run_a_ruby_hook(tempdir_factory, store):
)
+def test_run_a_ruby_hook_with_user_install_set(tempdir_factory, store, tmpdir):
+ gemrc = tmpdir.join('gemrc')
+ gemrc.write('gem: --user-install\n')
+ with envcontext((('GEMRC', str(gemrc)),)):
+ test_run_a_ruby_hook(tempdir_factory, store)
+
+
@xfailif_windows # pragma: win32 no cover
def test_run_versioned_ruby_hook(tempdir_factory, store):
_test_hook_repo(