From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D4809158094 for ; Tue, 26 Jul 2022 09:50:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B6CB4E0EA8; Tue, 26 Jul 2022 09:49:40 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6423CE0EA3 for ; Tue, 26 Jul 2022 09:49:40 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5E5B0340F10 for ; Tue, 26 Jul 2022 09:49:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DDD7F54F for ; Tue, 26 Jul 2022 09:49:37 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1658828972.46f51d8dec299e53f0ac914c98517558ab8bf371.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/oauth/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/oauth/oauth-0.5.10.ebuild X-VCS-Directories: dev-ruby/oauth/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 46f51d8dec299e53f0ac914c98517558ab8bf371 X-VCS-Branch: master Date: Tue, 26 Jul 2022 09:49:37 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0e8ddf41-7bc4-412a-a27f-300aa1b35cfd X-Archives-Hash: 37edbd6780045c9dcfcb0d8cde57e0da commit: 46f51d8dec299e53f0ac914c98517558ab8bf371 Author: Hans de Graaff gentoo org> AuthorDate: Tue Jul 26 07:45:50 2022 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Tue Jul 26 09:49:32 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46f51d8d dev-ruby/oauth: fix tests Signed-off-by: Hans de Graaff gentoo.org> dev-ruby/oauth/oauth-0.5.10.ebuild | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dev-ruby/oauth/oauth-0.5.10.ebuild b/dev-ruby/oauth/oauth-0.5.10.ebuild index 6aacd85e42e9..d2a781ddc4e8 100644 --- a/dev-ruby/oauth/oauth-0.5.10.ebuild +++ b/dev-ruby/oauth/oauth-0.5.10.ebuild @@ -32,8 +32,14 @@ ruby_add_bdepend "test? ( all_ruby_prepare() { # Require a compatible version of mocha - sed -i -e '1igem "mocha", "~> 1.0"; gem "railties", "~>6.1.0" ; gem "actionpack", "~>6.1.0"' \ - -e '2i gem "test-unit"; require "test/unit"' \ + sed -i -e '1igem "mocha", "~> 1.0"; gem "railties", "~>6.1.0" ; gem "actionpack", "~>6.1.0"; require "action_dispatch"' \ -e '/mocha/ s/mini_test/minitest/' \ -e '/\(byebug\|minitest_helpers\|simplecov\)/I s:^:#:' test/test_helper.rb || die + + # Avoid test tripped up by kwargs confusion + sed -i -e '/test_authorize/askip "kwargs confusion"' test/units/test_cli.rb || die +} + +each_ruby_test() { + ${RUBY} -Ilib:test:. -e 'Dir["test/**/*test*.rb"].each {|f| require f}' || die }