Skip to content

Commit 6eacdd4

Browse files
authored
Merge pull request pre-commit#2726 from pre-commit/pick-better-ruby-version
speed up ruby tests by picking a prebuilt in 22.04
2 parents 840cf53 + 6e8051b commit 6eacdd4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

testing/resources/ruby_versioned_hooks_repo/.pre-commit-hooks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
name: Ruby Hook
33
entry: ruby_hook
44
language: ruby
5-
language_version: 3.1.0
5+
language_version: 3.2.0
66
files: \.rb$

tests/languages/ruby_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ def test_install_ruby_default(fake_gem_prefix):
7171

7272
@xfailif_windows # pragma: win32 no cover
7373
def test_install_ruby_with_version(fake_gem_prefix):
74-
ruby.install_environment(fake_gem_prefix, '3.1.0', ())
74+
ruby.install_environment(fake_gem_prefix, '3.2.0', ())
7575

7676
# Should be able to activate and use rbenv install
77-
with ruby.in_env(fake_gem_prefix, '3.1.0'):
77+
with ruby.in_env(fake_gem_prefix, '3.2.0'):
7878
cmd_output('rbenv', 'install', '--help')
7979

8080

tests/repository_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def test_run_versioned_ruby_hook(tempdir_factory, store):
247247
tempdir_factory, store, 'ruby_versioned_hooks_repo',
248248
'ruby_hook',
249249
[os.devnull],
250-
b'3.1.0\nHello world from a ruby hook\n',
250+
b'3.2.0\nHello world from a ruby hook\n',
251251
)
252252

253253

@@ -269,7 +269,7 @@ def test_run_ruby_hook_with_disable_shared_gems(
269269
tempdir_factory, store, 'ruby_versioned_hooks_repo',
270270
'ruby_hook',
271271
[os.devnull],
272-
b'3.1.0\nHello world from a ruby hook\n',
272+
b'3.2.0\nHello world from a ruby hook\n',
273273
)
274274

275275

0 commit comments

Comments
 (0)