Quick fix for faraday_middleware bug introduced when bumping to faraday 0.16.0.

Namespacing changed in faraday from Faraday::Error::* to Faraday::*
but was not reflected in faraday_middleware (which hasn't released
since February). I will file an issue and/or PR with them later.

Signed-off-by: Ryan Davis <zenspider@chef.io>
This commit is contained in:
Ryan Davis 2019-09-27 14:12:10 -07:00
parent 31b24c4abf
commit 984e02e312

View file

@ -1,6 +1,7 @@
require "helper" require "helper"
require "inspec/resource" require "inspec/resource"
require "inspec/resources/http" require "inspec/resources/http"
Faraday::Error::ClientError = ::Faraday::ClientError # TODO/HACK push upstream to faraday_middleware
require "faraday_middleware/response/follow_redirects" require "faraday_middleware/response/follow_redirects"
describe "Inspec::Resources::Http" do describe "Inspec::Resources::Http" do