dev-ruby/actionpack: fix tests

Fix tests when chrome and firefox are not present.
Making both browsers test dependencies for just a few
tests seems excessive.

Closes: https://bugs.gentoo.org/952987
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
Hans de Graaff
2025-04-02 14:05:27 +02:00
parent 4d9ea85e6d
commit cca711f34a
3 changed files with 16 additions and 1 deletions

View File

@@ -70,4 +70,9 @@ all_ruby_prepare() {
# Avoid tests that fail with a fixed cgi.rb version
sed -e '/test_session_store_with_all_domains/askip "Fails with fixed cgi.rb"' \
-i test/dispatch/session/cookie_store_test.rb || die
# Avoid tests requiring chrome
sed -e '/DrivenBySeleniumWith/,/^end/ s:^:#:' \
-i test/abstract_unit.rb || die
rm -f test/dispatch/system_testing/{driver,screenshot_helper,system_test_case}_test.rb || die
}

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -71,4 +71,9 @@ all_ruby_prepare() {
# Avoid tests that fail with a fixed cgi.rb version
sed -e '/test_session_store_with_all_domains/askip "Fails with fixed cgi.rb"' \
-i test/dispatch/session/cookie_store_test.rb || die
# Avoid tests requiring chrome
sed -e '/DrivenBySeleniumWith/,/^end/ s:^:#:' \
-i test/abstract_unit.rb || die
rm -f test/dispatch/system_testing/{driver,screenshot_helper,system_test_case}_test.rb || die
}

View File

@@ -69,4 +69,9 @@ all_ruby_prepare() {
# Avoid tests that fail with a fixed cgi.rb version
sed -e '/test_session_store_with_all_domains/askip "Fails with fixed cgi.rb"' \
-i test/dispatch/session/cookie_store_test.rb || die
# Avoid tests requiring chrome
sed -e '/DrivenBySeleniumWith/,/^end/ s:^:#:' \
-i test/abstract_unit.rb || die
rm -f test/dispatch/system_testing/{driver,screenshot_helper,system_test_case}_test.rb || die
}