dev-ruby/warden: fix tests with rack 3 present

Closes: https://bugs.gentoo.org/892702
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
Hans de Graaff
2023-02-03 16:12:27 +01:00
parent 2ab003050d
commit b2c7400c35

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -23,6 +23,10 @@ IUSE=""
ruby_add_rdepend ">=dev-ruby/rack-2.0.9:*"
ruby_add_bdepend "test? ( dev-ruby/rack:2.2 )"
all_ruby_prepare() {
sed -i -e 's/git ls-files -z/find * -print0/' ${RUBY_FAKEGEM_GEMSPEC} || die
sed -i -e '1igem "rack", "<3"' spec/spec_helper.rb || die
}