1 |
commit: 7503c46f9a5b3385325e7b5b04a180031ac617d9 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 26 08:46:05 2020 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 26 08:46:05 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7503c46f |
7 |
|
8 |
dev-ruby/rspec-support: fix use of ruby in tests |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.23 |
11 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
12 |
|
13 |
dev-ruby/rspec-support/rspec-support-3.9.2.ebuild | 5 +++++ |
14 |
1 file changed, 5 insertions(+) |
15 |
|
16 |
diff --git a/dev-ruby/rspec-support/rspec-support-3.9.2.ebuild b/dev-ruby/rspec-support/rspec-support-3.9.2.ebuild |
17 |
index b0f14e38d54..36a174b55d3 100644 |
18 |
--- a/dev-ruby/rspec-support/rspec-support-3.9.2.ebuild |
19 |
+++ b/dev-ruby/rspec-support/rspec-support-3.9.2.ebuild |
20 |
@@ -40,3 +40,8 @@ all_ruby_prepare() { |
21 |
# should be fixed upstream in next version |
22 |
#sed -i -e '/returns a hash containing nodes for each line number/askip "ruby26"' spec/rspec/support/source_spec.rb || die |
23 |
} |
24 |
+ |
25 |
+each_ruby_prepare() { |
26 |
+ # Use the ruby version being tested |
27 |
+ sed -i -e '/shell_out/ s:ruby:'${RUBY}':' spec/rspec/support/spec/shell_out_spec.rb || die |
28 |
+} |