1 |
commit: 9c4e38cebb8533a92ed176f634524cd9bd32eaa1 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 8 06:15:52 2021 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 8 06:15:52 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c4e38ce |
7 |
|
8 |
dev-ruby/slim: fix tests |
9 |
|
10 |
Closes: https://bugs.gentoo.org/816573 |
11 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
12 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
13 |
|
14 |
dev-ruby/slim/slim-4.1.0-r1.ebuild | 3 +++ |
15 |
1 file changed, 3 insertions(+) |
16 |
|
17 |
diff --git a/dev-ruby/slim/slim-4.1.0-r1.ebuild b/dev-ruby/slim/slim-4.1.0-r1.ebuild |
18 |
index 9677e6a8081..d1f1920d1e3 100644 |
19 |
--- a/dev-ruby/slim/slim-4.1.0-r1.ebuild |
20 |
+++ b/dev-ruby/slim/slim-4.1.0-r1.ebuild |
21 |
@@ -36,6 +36,9 @@ all_ruby_prepare() { |
22 |
# This sinatra code expects tests to be installed but we strip those. |
23 |
sed -i -e "s/require 'sinatra'/require 'bogussinatra'/" Rakefile || die |
24 |
|
25 |
+ # Add missing include, bug 816573 |
26 |
+ sed -i -e "1irequire 'ostruct'" test/core/test_code_evaluation.rb || die |
27 |
+ |
28 |
# Avoid tests for things we don't have. The builder test does not pass with tilt 2.x |
29 |
sed -i -e '/test_wip_render_with_asciidoc/,/^ end/ s:^:#:' \ |
30 |
-e '/test_render_with_wiki/,/^ end/ s:^:#:' \ |