mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-16 14:29:05 -07:00
dev-ruby/rspec-support: enable ruby31
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
USE_RUBY="ruby26 ruby27 ruby30"
|
||||
USE_RUBY="ruby26 ruby27 ruby30 ruby31"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||
|
||||
@@ -44,6 +44,15 @@ all_ruby_prepare() {
|
||||
each_ruby_prepare() {
|
||||
# Use the ruby version being tested
|
||||
sed -i -e '/shell_out/ s:ruby:'${RUBY}':' spec/rspec/support/spec/shell_out_spec.rb || die
|
||||
|
||||
case ${RUBY} in
|
||||
*ruby31)
|
||||
# Avoid specs failing when run in Gentoo, possibly due to different IO
|
||||
sed -e '/outputs unified diff message of two arrays/askip "ruby31 IO"' \
|
||||
-e '/outputs unified diff message for hashes inside arrays with differing key orders/askip "ruby31 IO"' \
|
||||
-i spec/rspec/support/differ_spec.rb || die
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
|
||||
Reference in New Issue
Block a user