* [gentoo-commits] repo/gentoo:master commit in: dev-ruby/test_declarative/files/, dev-ruby/test_declarative/
@ 2023-11-12 4:42 Sam James
0 siblings, 0 replies; only message in thread
From: Sam James @ 2023-11-12 4:42 UTC (permalink / raw
To: gentoo-commits
commit: 6181afd114629b45e4325eb8e7247992e234e75a
Author: Matoro Mahri <matoro_gentoo <AT> matoro <DOT> tk>
AuthorDate: Sat Nov 11 04:32:42 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Nov 12 04:41:42 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6181afd1
dev-ruby/test_declarative: fix tests with minitest 5
See: https://github.com/svenfuchs/test_declarative/pull/24
Closes: https://bugs.gentoo.org/912063
Bug: https://bugs.gentoo.org/917059
Signed-off-by: Matoro Mahri <matoro_gentoo <AT> matoro.tk>
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../test_declarative-0.0.6-backport-pr24.patch | 29 ++++++++++++++++++++++
.../test_declarative-0.0.6-r1.ebuild | 1 +
2 files changed, 30 insertions(+)
diff --git a/dev-ruby/test_declarative/files/test_declarative-0.0.6-backport-pr24.patch b/dev-ruby/test_declarative/files/test_declarative-0.0.6-backport-pr24.patch
new file mode 100644
index 000000000000..6220353790ec
--- /dev/null
+++ b/dev-ruby/test_declarative/files/test_declarative-0.0.6-backport-pr24.patch
@@ -0,0 +1,29 @@
+https://bugs.gentoo.org/912063
+https://github.com/svenfuchs/test_declarative/pull/24
+
+From ef9561b703990a846aa49c0f4d164009b355f0cd Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com>
+Date: Tue, 22 Aug 2023 16:32:34 +0200
+Subject: [PATCH] Use Minitest::Test as a test runner
+
+The Minitest::Unit is deprecated since Minitest 5.0 and it was recenlty
+put behind environment variable:
+
+https://github.com/minitest/minitest/commit/a2c6c18570f6f0a1bf6af70fe3b6d9599a13fdd6
+---
+ test/test_declarative_test.rb | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/test/test_declarative_test.rb b/test/test_declarative_test.rb
+index 6ef4220..a3ab0ae 100644
+--- a/test/test_declarative_test.rb
++++ b/test/test_declarative_test.rb
+@@ -13,7 +13,7 @@ def gemfile_name
+ # Minitest >= 5
+ require 'minitest/autorun'
+ TEST_CASE = Minitest::Test
+- RUNNER = Minitest::Unit
++ RUNNER = Minitest::Test
+ when 'Gemfile.minitest4'
+ # Minitest < 5
+ require 'minitest/autorun'
diff --git a/dev-ruby/test_declarative/test_declarative-0.0.6-r1.ebuild b/dev-ruby/test_declarative/test_declarative-0.0.6-r1.ebuild
index f610d7a0d326..2da6eed8edf0 100644
--- a/dev-ruby/test_declarative/test_declarative-0.0.6-r1.ebuild
+++ b/dev-ruby/test_declarative/test_declarative-0.0.6-r1.ebuild
@@ -22,6 +22,7 @@ LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~s390 sparc x86"
IUSE=""
+PATCHES=( "${FILESDIR}/${PN}-0.0.6-backport-pr24.patch" )
ruby_add_bdepend "test? ( dev-ruby/bundler >=dev-ruby/minitest-5.10:5 )"
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-11-12 4:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-12 4:42 [gentoo-commits] repo/gentoo:master commit in: dev-ruby/test_declarative/files/, dev-ruby/test_declarative/ Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox