mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-19 09:04:41 +04:00
Merge pull request #2726 from pre-commit/pick-better-ruby-version
speed up ruby tests by picking a prebuilt in 22.04
This commit is contained in:
commit
6eacdd440e
3 changed files with 5 additions and 5 deletions
|
|
@ -2,5 +2,5 @@
|
||||||
name: Ruby Hook
|
name: Ruby Hook
|
||||||
entry: ruby_hook
|
entry: ruby_hook
|
||||||
language: ruby
|
language: ruby
|
||||||
language_version: 3.1.0
|
language_version: 3.2.0
|
||||||
files: \.rb$
|
files: \.rb$
|
||||||
|
|
|
||||||
|
|
@ -71,10 +71,10 @@ def test_install_ruby_default(fake_gem_prefix):
|
||||||
|
|
||||||
@xfailif_windows # pragma: win32 no cover
|
@xfailif_windows # pragma: win32 no cover
|
||||||
def test_install_ruby_with_version(fake_gem_prefix):
|
def test_install_ruby_with_version(fake_gem_prefix):
|
||||||
ruby.install_environment(fake_gem_prefix, '3.1.0', ())
|
ruby.install_environment(fake_gem_prefix, '3.2.0', ())
|
||||||
|
|
||||||
# Should be able to activate and use rbenv install
|
# Should be able to activate and use rbenv install
|
||||||
with ruby.in_env(fake_gem_prefix, '3.1.0'):
|
with ruby.in_env(fake_gem_prefix, '3.2.0'):
|
||||||
cmd_output('rbenv', 'install', '--help')
|
cmd_output('rbenv', 'install', '--help')
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -247,7 +247,7 @@ def test_run_versioned_ruby_hook(tempdir_factory, store):
|
||||||
tempdir_factory, store, 'ruby_versioned_hooks_repo',
|
tempdir_factory, store, 'ruby_versioned_hooks_repo',
|
||||||
'ruby_hook',
|
'ruby_hook',
|
||||||
[os.devnull],
|
[os.devnull],
|
||||||
b'3.1.0\nHello world from a ruby hook\n',
|
b'3.2.0\nHello world from a ruby hook\n',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -269,7 +269,7 @@ def test_run_ruby_hook_with_disable_shared_gems(
|
||||||
tempdir_factory, store, 'ruby_versioned_hooks_repo',
|
tempdir_factory, store, 'ruby_versioned_hooks_repo',
|
||||||
'ruby_hook',
|
'ruby_hook',
|
||||||
[os.devnull],
|
[os.devnull],
|
||||||
b'3.1.0\nHello world from a ruby hook\n',
|
b'3.2.0\nHello world from a ruby hook\n',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue