commit:     27d6637efb4a859da3bee511d6d9959bbc08e117
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 20 13:14:29 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Mar 22 03:25:17 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27d6637e

dev-ruby/contracts: set COLUMNS to fix tests

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-ruby/contracts/contracts-0.17.ebuild | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/dev-ruby/contracts/contracts-0.17.ebuild 
b/dev-ruby/contracts/contracts-0.17.ebuild
index 66484ff56a9d..dfd63b733363 100644
--- a/dev-ruby/contracts/contracts-0.17.ebuild
+++ b/dev-ruby/contracts/contracts-0.17.ebuild
@@ -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=7
@@ -17,3 +17,11 @@ LICENSE="MIT"
 SLOT="$(ver_cut 1-2)"
 KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
 IUSE=""
+
+each_ruby_test() {
+       # COLUMNS needed for:
+       # ./spec/contracts_spec.rb:654 # Contracts: Contracts to_s formatting 
in expected should wrap and pretty print for long return contracts
+       # ./spec/contracts_spec.rb:643 # Contracts: Contracts to_s formatting 
in expected should wrap and pretty print for long param contracts
+       local -x COLUMNS=80
+       each_fakegem_test
+}

Reply via email to