From 3f956da559bbb8f927633d8830373005d61fc08d Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Sun, 4 Oct 2015 08:53:49 +0200 Subject: [PATCH] dev-ruby/http: fix tests Avoid specs that require network access. Package-Manager: portage-2.2.20.1 --- dev-ruby/http/http-0.9.8.ebuild | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dev-ruby/http/http-0.9.8.ebuild b/dev-ruby/http/http-0.9.8.ebuild index 196ca4884993..d4751d420f15 100644 --- a/dev-ruby/http/http-0.9.8.ebuild +++ b/dev-ruby/http/http-0.9.8.ebuild @@ -32,4 +32,10 @@ ruby_add_bdepend " all_ruby_prepare() { sed -i -e '/simplecov/,/end/ s:^:#:' \ -e '1irequire "cgi"' spec/spec_helper.rb || die + + # Avoid specs that require network access + sed -i -e '/.persistent/,/^ end/ s:^:#:' \ + spec/lib/http_spec.rb || die + sed -i -e '/with non-ASCII URLs/,/^ end/ s:^:#:' \ + spec/lib/http/client_spec.rb || die } -- 2.26.2