diff options
author | Matoro Mahri <matoro_gentoo@matoro.tk> | 2023-11-10 23:32:42 -0500 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-11-12 04:41:42 +0000 |
commit | 6181afd114629b45e4325eb8e7247992e234e75a (patch) | |
tree | 39708d2c660103f01631ed2d6cd1cf93b22540a5 /dev-ruby | |
parent | dev-python/httpbin: Keyword 0.10.1-r3 alpha, #917060 (diff) | |
download | gentoo-6181afd114629b45e4325eb8e7247992e234e75a.tar.gz gentoo-6181afd114629b45e4325eb8e7247992e234e75a.tar.bz2 gentoo-6181afd114629b45e4325eb8e7247992e234e75a.zip |
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@matoro.tk>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/test_declarative/files/test_declarative-0.0.6-backport-pr24.patch | 29 | ||||
-rw-r--r-- | dev-ruby/test_declarative/test_declarative-0.0.6-r1.ebuild | 1 |
2 files changed, 30 insertions, 0 deletions
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 )" |