dev-ruby/globalid: fix tests with rails 7.2

Closes: https://bugs.gentoo.org/940742
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
Hans de Graaff
2024-10-04 11:40:25 +02:00
parent ba5687703f
commit 6c6ed2af2e

View File

@@ -19,9 +19,17 @@ SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux"
IUSE=""
ruby_add_bdepend "test? ( dev-ruby/bundler >=dev-ruby/activemodel-6.1 >=dev-ruby/railties-6.1 )"
ruby_add_bdepend "test? (
dev-ruby/bundler
<dev-ruby/activemodel-7.2
<dev-ruby/railties-7.2
)"
ruby_add_rdepend ">=dev-ruby/activesupport-6.1:*"
all_ruby_prepare() {
rm -f Gemfile.lock || die
# Ensure a version of rails compatible with the tests.
sed -e '/^gem / s/$/, "<7.2"/' \
-i Gemfile || die
}