commit:     46f51d8dec299e53f0ac914c98517558ab8bf371
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 26 07:45:50 2022 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> 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 <graaff <AT> 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
 }

Reply via email to