From: Hans de Graaff Date: Sun, 4 Oct 2015 06:53:49 +0000 (+0200) Subject: dev-ruby/http: fix tests X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3f956da559bbb8f927633d8830373005d61fc08d;p=gentoo.git dev-ruby/http: fix tests Avoid specs that require network access. Package-Manager: portage-2.2.20.1 --- 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 }