MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / test_ruby_hook_system

Function test_ruby_hook_system

tests/languages/ruby_test.py:70–76  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

68
69
70def test_ruby_hook_system(tmp_path):
71 assert ruby.get_default_version() == 'system'
72
73 _setup_hello_world(tmp_path)
74
75 ret = run_language(tmp_path, ruby, 'ruby_hook')
76 assert ret == (0, b'Hello world from a ruby hook\n')
77
78
79def test_ruby_with_user_install_set(tmp_path):

Callers 1

Calls 3

run_languageFunction · 0.90
_setup_hello_worldFunction · 0.85
get_default_versionMethod · 0.80

Tested by

no test coverage detected