mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
fixup Gemfile in ruby tests
This commit is contained in:
parent
7260d24d0f
commit
1129e7d222
1 changed files with 4 additions and 3 deletions
|
|
@ -123,8 +123,9 @@ def test_ruby_hook_language_version(tmp_path):
|
||||||
def test_ruby_with_bundle_disable_shared_gems(tmp_path):
|
def test_ruby_with_bundle_disable_shared_gems(tmp_path):
|
||||||
workdir = tmp_path.joinpath('workdir')
|
workdir = tmp_path.joinpath('workdir')
|
||||||
workdir.mkdir()
|
workdir.mkdir()
|
||||||
# this Gemfile is missing `source`
|
# this needs a `source` or there's a deprecation warning
|
||||||
workdir.joinpath('Gemfile').write_text('gem "lol_hai"\n')
|
# silencing this with `BUNDLE_GEMFILE` breaks some tools (#2739)
|
||||||
|
workdir.joinpath('Gemfile').write_text('source ""\ngem "lol_hai"\n')
|
||||||
# this bundle config causes things to be written elsewhere
|
# this bundle config causes things to be written elsewhere
|
||||||
bundle = workdir.joinpath('.bundle')
|
bundle = workdir.joinpath('.bundle')
|
||||||
bundle.mkdir()
|
bundle.mkdir()
|
||||||
|
|
@ -134,5 +135,5 @@ def test_ruby_with_bundle_disable_shared_gems(tmp_path):
|
||||||
)
|
)
|
||||||
|
|
||||||
with cwd(workdir):
|
with cwd(workdir):
|
||||||
# `3.2.0` has new enough `gem` requiring `source` and reading `.bundle`
|
# `3.2.0` has new enough `gem` reading `.bundle`
|
||||||
test_ruby_hook_language_version(tmp_path)
|
test_ruby_hook_language_version(tmp_path)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue