commit:     642b9f6b0e34e931d3e9c9297c5ec6e8548760fb
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 23 06:38:21 2021 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sat Oct 23 06:38:21 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=642b9f6b

dev-ruby/rubytest: fix running tests with qed

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

 dev-ruby/rubytest/rubytest-0.8.1-r1.ebuild | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dev-ruby/rubytest/rubytest-0.8.1-r1.ebuild 
b/dev-ruby/rubytest/rubytest-0.8.1-r1.ebuild
index cf0c1895e2f..84956108303 100644
--- a/dev-ruby/rubytest/rubytest-0.8.1-r1.ebuild
+++ b/dev-ruby/rubytest/rubytest-0.8.1-r1.ebuild
@@ -21,6 +21,11 @@ IUSE=""
 ruby_add_bdepend "test? ( dev-ruby/ae dev-ruby/qed )"
 ruby_add_rdepend "dev-ruby/ansi"
 
+all_ruby_prepare() {
+       # Help qed correctly find the root of the project
+       touch .ruby || die
+}
+
 each_ruby_test() {
        ${RUBY} -S qed || die 'tests failed'
 }

Reply via email to