diff options
author | Hans de Graaff <graaff@gentoo.org> | 2016-08-05 13:35:56 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2016-08-05 14:13:51 +0200 |
commit | 07e90c3617fe22f12f8a676a03f6b32b8a35f953 (patch) | |
tree | cdc6b73ce3c30f2f2728abc2abe4f54bb11dcf6c /dev-ruby/webmock | |
parent | profiles: Mask icedtea:7 on arm as well as icedtea-bin:7 (diff) | |
download | gentoo-07e90c3617fe22f12f8a676a03f6b32b8a35f953.tar.gz gentoo-07e90c3617fe22f12f8a676a03f6b32b8a35f953.tar.bz2 gentoo-07e90c3617fe22f12f8a676a03f6b32b8a35f953.zip |
dev-ruby/webmock: fix httpclient tests
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-ruby/webmock')
-rw-r--r-- | dev-ruby/webmock/webmock-2.1.0.ebuild | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/dev-ruby/webmock/webmock-2.1.0.ebuild b/dev-ruby/webmock/webmock-2.1.0.ebuild index 3b8049fd6264..564772bc075f 100644 --- a/dev-ruby/webmock/webmock-2.1.0.ebuild +++ b/dev-ruby/webmock/webmock-2.1.0.ebuild @@ -27,7 +27,7 @@ ruby_add_bdepend "test? ( dev-ruby/minitest:5 dev-ruby/rspec:3 dev-ruby/rack - >=dev-ruby/httpclient-2.2.4 + >=dev-ruby/httpclient-2.8.0 >=dev-ruby/patron-0.4.18 >=dev-ruby/http-0.8.0:0.8 )" @@ -41,6 +41,12 @@ all_ruby_prepare() { # version is too old. sed -i -e '/\(curb\|typhoeus\|em-http\)/d' spec/spec_helper.rb || die rm spec/acceptance/{typhoeus,curb,excon,em_http_request}/* || die + + # Avoid httpclient specs that require network access, most likely + # because mocking does not fully work. + sed -i -e '/httpclient streams response/,/^ end/ s:^:#:' \ + -e '/are detected when manually specifying Authorization header/,/^ end/ s:^:#:' \ + spec/acceptance/httpclient/httpclient_spec.rb } each_ruby_test() { |