commit: 3fcfb7ecabab0f6f3a548689f8efc6eb7f8dba49
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 30 11:52:14 2025 +0000
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sun Mar 30 16:46:33 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3fcfb7ec
dev-ruby/rspec-expectations: fix tests
Avoid tests broken by newer diff-lcs.
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
dev-ruby/rspec-expectations/rspec-expectations-3.13.3.ebuild | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/dev-ruby/rspec-expectations/rspec-expectations-3.13.3.ebuild
b/dev-ruby/rspec-expectations/rspec-expectations-3.13.3.ebuild
index da99fac8e53d..b0d38bc7f975 100644
--- a/dev-ruby/rspec-expectations/rspec-expectations-3.13.3.ebuild
+++ b/dev-ruby/rspec-expectations/rspec-expectations-3.13.3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -47,4 +47,11 @@ all_ruby_prepare() {
-e '/git ls/d' \
-e '/add_development_dependency/d' \
"${RUBY_FAKEGEM_GEMSPEC}" || die
+
+ # Avoid specs failing with newer diff-lcs. Already fixed upstream.
+ rm -f spec/rspec/matchers/dsl_spec.rb \
+
spec/rspec/matchers/built_in/{compound,have_attributes,include}_spec.rb || die
+
+ sed -e '/simplecov/,/^end/ s:^:#:' \
+ -i spec/spec_helper.rb || die
}