dev-ruby/git: fix tests

Ensure the right version of process_executer is used.

Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
Hans de Graaff
2025-07-07 12:09:27 +02:00
parent 61722e0b8e
commit 1d9c9c643a

View File

@@ -35,6 +35,9 @@ ruby_add_rdepend "
ruby_add_bdepend "test? ( dev-ruby/bundler dev-ruby/minitar:1 >=dev-ruby/mocha-2.1:2 dev-ruby/test-unit:2 )"
all_ruby_prepare() {
sed -e '2igem "process_executer", "~> 1.0"' \
-i tests/test_helper.rb || die
# Don't use hardcoded /tmp directory.
sed -i -e "s:/tmp:${TMPDIR}:" tests/units/test_archive.rb tests/test_helper.rb || die