commit:     ab5c08038d31a7d3daf8c1da476e8e995e1df605
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 15 04:41:43 2021 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sun Aug 15 07:41:13 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab5c0803

dev-ruby/pundit: fix tests

Avoid test dependency on simplecov

Closes: https://bugs.gentoo.org/808186
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/pundit/pundit-2.1.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-ruby/pundit/pundit-2.1.1.ebuild 
b/dev-ruby/pundit/pundit-2.1.1.ebuild
index aabad7105e0..aa5c64669fd 100644
--- a/dev-ruby/pundit/pundit-2.1.1.ebuild
+++ b/dev-ruby/pundit/pundit-2.1.1.ebuild
@@ -23,5 +23,5 @@ ruby_add_bdepend "test? ( >=dev-ruby/actionpack-3.0.0
        >=dev-ruby/activemodel-3.0.0 )"
 
 all_ruby_prepare() {
-       sed -i -e "/pry/d" spec/spec_helper.rb || die
+       sed -i -e "/pry/d" -e '/simplecov/,/^end/ s:^:#:' spec/spec_helper.rb 
|| die
 }

Reply via email to