summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2020-06-21 10:29:56 +0200
committerHans de Graaff <graaff@gentoo.org>2020-06-21 10:30:11 +0200
commit7eeaa3be05fdef22c7dd2e16620491d86ad50a50 (patch)
treeabae5b023ce8f9589fce8aec8ffe04f2698d641c /dev-ruby/kramdown-parser-gfm
parentdev-ruby/fuubar: cleanup (diff)
downloadgentoo-7eeaa3be05fdef22c7dd2e16620491d86ad50a50.tar.gz
gentoo-7eeaa3be05fdef22c7dd2e16620491d86ad50a50.tar.bz2
gentoo-7eeaa3be05fdef22c7dd2e16620491d86ad50a50.zip
dev-ruby/kramdown-parser-gfm: fix tests
Add missing test dependency and skip test case incompatible with newer rouge. Closes: https://bugs.gentoo.org/728742 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/kramdown-parser-gfm')
-rw-r--r--dev-ruby/kramdown-parser-gfm/kramdown-parser-gfm-1.1.0.ebuild6
1 files changed, 6 insertions, 0 deletions
diff --git a/dev-ruby/kramdown-parser-gfm/kramdown-parser-gfm-1.1.0.ebuild b/dev-ruby/kramdown-parser-gfm/kramdown-parser-gfm-1.1.0.ebuild
index 8154ac67e4b5..198e6f11b1e7 100644
--- a/dev-ruby/kramdown-parser-gfm/kramdown-parser-gfm-1.1.0.ebuild
+++ b/dev-ruby/kramdown-parser-gfm/kramdown-parser-gfm-1.1.0.ebuild
@@ -15,6 +15,12 @@ SLOT="$(ver_cut 1)"
IUSE="doc"
ruby_add_rdepend "dev-ruby/kramdown:2"
+ruby_add_bdepend "test? ( dev-ruby/kramdown[latex] )"
+
+all_ruby_prepare() {
+ # Avoid testcase which is no longer compatible with newer rouge
+ rm -f test/testcases/codeblock_fenced.text || die
+}
each_ruby_test() {
${RUBY} -Ilib:. -e 'Dir["test/test_*.rb"].each{|f| require f}' || die