From 3fcfb7ecabab0f6f3a548689f8efc6eb7f8dba49 Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Sun, 30 Mar 2025 13:52:14 +0200 Subject: [PATCH] dev-ruby/rspec-expectations: fix tests Avoid tests broken by newer diff-lcs. Signed-off-by: Hans de Graaff --- .../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 da99fac8e53d4..b0d38bc7f9752 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 }