Blob Blame History Raw
From d92263f73cfb20527ff0d689338bbe5348798d11 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com>
Date: Tue, 5 Feb 2019 10:38:33 +0100
Subject: [PATCH] Ruby 2.6 escapes InvalidURIError output.

https://github.com/ruby/ruby/commit/684cdb4f8340f7a88b00bb91139da74b99ec1147
---
 tests/error_tests.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/error_tests.rb b/tests/error_tests.rb
index c1bf15fe..21d2103b 100644
--- a/tests/error_tests.rb
+++ b/tests/error_tests.rb
@@ -35,7 +35,7 @@
       Excon.new('http://localhost', path: "foo\r\nbar: baz")
       false
     rescue => err
-      err.to_s.include? "foo\r\nbar: baz"
+      err.to_s.include?(RUBY_VERSION >= '2.6.0' ? 'foo\r\nbar: baz' : "foo\r\nbar: baz")
     end
   end