Skip to content

Commit 1129e7d

Browse files
committed
fixup Gemfile in ruby tests
1 parent 7260d24 commit 1129e7d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/languages/ruby_test.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,9 @@ def test_ruby_hook_language_version(tmp_path):
123123
def test_ruby_with_bundle_disable_shared_gems(tmp_path):
124124
workdir = tmp_path.joinpath('workdir')
125125
workdir.mkdir()
126-
# this Gemfile is missing `source`
127-
workdir.joinpath('Gemfile').write_text('gem "lol_hai"\n')
126+
# this needs a `source` or there's a deprecation warning
127+
# silencing this with `BUNDLE_GEMFILE` breaks some tools (#2739)
128+
workdir.joinpath('Gemfile').write_text('source ""\ngem "lol_hai"\n')
128129
# this bundle config causes things to be written elsewhere
129130
bundle = workdir.joinpath('.bundle')
130131
bundle.mkdir()
@@ -134,5 +135,5 @@ def test_ruby_with_bundle_disable_shared_gems(tmp_path):
134135
)
135136

136137
with cwd(workdir):
137-
# `3.2.0` has new enough `gem` requiring `source` and reading `.bundle`
138+
# `3.2.0` has new enough `gem` reading `.bundle`
138139
test_ruby_hook_language_version(tmp_path)

0 commit comments

Comments
 (0)