mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
dev-ruby/sprockets-rails: use bundler to fix tests against minitest-5
Signed-off-by: Alfred Wingate <parona@protonmail.com> Part-of: https://codeberg.org/gentoo/gentoo/pulls/1527 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
842f363ec9
commit
a8faba96ff
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -28,6 +28,7 @@ ruby_add_rdepend "
|
||||
|
||||
ruby_add_bdepend "
|
||||
test? (
|
||||
dev-ruby/bundler
|
||||
dev-ruby/minitest:5
|
||||
>=dev-ruby/railties-6.1:*
|
||||
dev-ruby/test-unit:2
|
||||
@@ -38,4 +39,17 @@ all_ruby_prepare() {
|
||||
|
||||
# It looks like tests are order dependent
|
||||
sed -i -e '/test_order/ s/:random/:alpha/' test/test_helper.rb || die
|
||||
|
||||
cat <<-EOF > "${T}/Gemfile" || die
|
||||
gem "actionpack", ">= 6.1"
|
||||
gem "activesupport", ">= 6.1"
|
||||
gem "minitest", "~> 5"
|
||||
gem "railties", ">= 6.1"
|
||||
gem "sprockets", ">= 3"
|
||||
gem "test-unit", ">= 2"
|
||||
EOF
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
BUNDLE_GEMFILE="${T}/Gemfile" ${RUBY} -S bundle exec ${RUBY} -S rake || die
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user