mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-ruby/actionview: fix tests with ruby31, ruby32
Avoid tests that require the unpackaged prism parser. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
@@ -74,3 +74,14 @@ all_ruby_prepare() {
|
||||
sed -e '/test_sanitized_allowed_\(tags_class_method\|attributes_class_method\)/askip "Removed upstream"' \
|
||||
-i test/template/sanitize_helper_test.rb || die
|
||||
}
|
||||
|
||||
each_ruby_prepare() {
|
||||
# The new prism parser is currently unpackaged and only included with ruby33.
|
||||
case ${RUBY} in
|
||||
*ruby31|*ruby32)
|
||||
sed -e '/prism/ s:^:#:' \
|
||||
-e '/PrismRubyTrackerTest/,/^end/ s:^:#:' \
|
||||
-i test/template/dependency_tracker_test.rb || die
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user