mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-09 06:37:10 -08:00
dev-ruby/test_declarative: add ruby22
Skip tests for ruby22 since they don't work at all. We only keep this package for i18n's tests and they seem to work fine on ruby22, so we add ruby22 support here as well so we can add ruby22 for rails. Package-Manager: portage-2.2.24
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
EAPI=5
|
||||
|
||||
# ruby22: fails due to minitest incompatabilities.
|
||||
USE_RUBY="ruby19 ruby20 ruby21"
|
||||
USE_RUBY="ruby19 ruby20 ruby21 ruby22"
|
||||
|
||||
RUBY_FAKEGEM_TASK_TEST=""
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
@@ -25,5 +25,12 @@ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
each_ruby_test() {
|
||||
${RUBY} test/test_declarative_test.rb || die "Tests failed."
|
||||
case ${RUBY} in
|
||||
*ruby22)
|
||||
einfo "Tests do not work with ruby22"
|
||||
;;
|
||||
*)
|
||||
${RUBY} test/test_declarative_test.rb || die "Tests failed."
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user