1 |
commit: 62994f416975c37d6f11fd46c6d0984cbede1504 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 30 07:58:07 2022 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 30 07:59:56 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62994f41 |
7 |
|
8 |
dev-ruby/test_construct: fix tests |
9 |
|
10 |
Limit mocha to a supported version. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/888761 |
13 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
14 |
|
15 |
dev-ruby/test_construct/test_construct-2.0.2-r1.ebuild | 4 +++- |
16 |
1 file changed, 3 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/dev-ruby/test_construct/test_construct-2.0.2-r1.ebuild b/dev-ruby/test_construct/test_construct-2.0.2-r1.ebuild |
19 |
index ff54aa227ce8..95b415ce58ae 100644 |
20 |
--- a/dev-ruby/test_construct/test_construct-2.0.2-r1.ebuild |
21 |
+++ b/dev-ruby/test_construct/test_construct-2.0.2-r1.ebuild |
22 |
@@ -18,10 +18,12 @@ IUSE="" |
23 |
|
24 |
ruby_add_bdepend "test? ( |
25 |
>=dev-ruby/minitest-5.0.8 |
26 |
- >=dev-ruby/mocha-0.14.0 |
27 |
+ dev-ruby/mocha:1.0 |
28 |
dev-ruby/rspec:3 |
29 |
)" |
30 |
|
31 |
all_ruby_prepare() { |
32 |
sed -i -e '/bundler/ s:^:#:' Rakefile || die |
33 |
+ |
34 |
+ sed -i -e '1igem "mocha", "<2"' test/test_helper.rb || die |
35 |
} |