From 984e02e312d004c2dd8318a44b7562a49e4d0687 Mon Sep 17 00:00:00 2001 From: Ryan Davis Date: Fri, 27 Sep 2019 14:12:10 -0700 Subject: [PATCH] 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 --- test/unit/resources/http_test.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/unit/resources/http_test.rb b/test/unit/resources/http_test.rb index 1165a8922..14e330d87 100644 --- a/test/unit/resources/http_test.rb +++ b/test/unit/resources/http_test.rb @@ -1,6 +1,7 @@ require "helper" require "inspec/resource" require "inspec/resources/http" +Faraday::Error::ClientError = ::Faraday::ClientError # TODO/HACK push upstream to faraday_middleware require "faraday_middleware/response/follow_redirects" describe "Inspec::Resources::Http" do