diff options
author | Hans de Graaff <graaff@gentoo.org> | 2021-10-08 08:15:52 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2021-10-08 08:15:52 +0200 |
commit | 9c4e38cebb8533a92ed176f634524cd9bd32eaa1 (patch) | |
tree | d98f94c0668f3bdff8a77c496240e55bde833cdb /dev-ruby/slim | |
parent | app-emacs/ghub: add 3.5.4 (diff) | |
download | gentoo-9c4e38cebb8533a92ed176f634524cd9bd32eaa1.tar.gz gentoo-9c4e38cebb8533a92ed176f634524cd9bd32eaa1.tar.bz2 gentoo-9c4e38cebb8533a92ed176f634524cd9bd32eaa1.zip |
dev-ruby/slim: fix tests
Closes: https://bugs.gentoo.org/816573
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/slim')
-rw-r--r-- | dev-ruby/slim/slim-4.1.0-r1.ebuild | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dev-ruby/slim/slim-4.1.0-r1.ebuild b/dev-ruby/slim/slim-4.1.0-r1.ebuild index 9677e6a80817..d1f1920d1e35 100644 --- a/dev-ruby/slim/slim-4.1.0-r1.ebuild +++ b/dev-ruby/slim/slim-4.1.0-r1.ebuild @@ -36,6 +36,9 @@ all_ruby_prepare() { # This sinatra code expects tests to be installed but we strip those. sed -i -e "s/require 'sinatra'/require 'bogussinatra'/" Rakefile || die + # Add missing include, bug 816573 + sed -i -e "1irequire 'ostruct'" test/core/test_code_evaluation.rb || die + # Avoid tests for things we don't have. The builder test does not pass with tilt 2.x sed -i -e '/test_wip_render_with_asciidoc/,/^ end/ s:^:#:' \ -e '/test_render_with_wiki/,/^ end/ s:^:#:' \ |