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:
Hans de Graaff
2024-08-25 10:07:06 +02:00
parent efc6032f5d
commit d818ef2f1a

View File

@@ -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
}