dev-ruby/camping: fix running tests
authorHans de Graaff <graaff@gentoo.org>
Mon, 17 Apr 2017 09:32:57 +0000 (11:32 +0200)
committerHans de Graaff <graaff@gentoo.org>
Mon, 17 Apr 2017 09:36:04 +0000 (11:36 +0200)
Package-Manager: Portage-2.3.3, Repoman-2.3.1

dev-ruby/camping/camping-2.1.532.ebuild

index dac1932d88b8a2c4cc63ec2f74bfd54572a2b02c..b74e63751503febf7fbeca9d92ff0cb60dbc0695 100644 (file)
@@ -1,8 +1,8 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
-USE_RUBY="ruby20 ruby21"
+USE_RUBY="ruby21"
 
 RUBY_FAKEGEM_TASK_DOC=""
 RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.md"
@@ -28,5 +28,5 @@ all_ruby_prepare() {
 }
 
 each_ruby_test() {
-       ${RUBY} -S testrb test/app_*.rb || die
+       ${RUBY} -Ilib:test:. -e 'Dir["test/app_*.rb"].each{|f| require f}' || die
 }