(tmp_path)
| 108 | |
| 109 | @xfailif_windows # pragma: win32 no cover |
| 110 | def test_ruby_hook_language_version(tmp_path): |
| 111 | _setup_hello_world(tmp_path) |
| 112 | tmp_path.joinpath('bin', 'ruby_hook').write_text( |
| 113 | '#!/usr/bin/env ruby\n' |
| 114 | 'puts RUBY_VERSION\n' |
| 115 | "puts 'Hello world from a ruby hook'\n", |
| 116 | ) |
| 117 | |
| 118 | ret = run_language(tmp_path, ruby, 'ruby_hook', version='3.2.0') |
| 119 | assert ret == (0, b'3.2.0\nHello world from a ruby hook\n') |
| 120 | |
| 121 | |
| 122 | @xfailif_windows # pragma: win32 no cover |
no test coverage detected