mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
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:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user