dev-ruby/rspec-expectations: fix tests

Avoid tests broken by newer diff-lcs.

Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
Hans de Graaff
2025-03-30 18:46:33 +02:00
parent a061825952
commit 3fcfb7ecab
@@ -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
}