Skip to content

Commit d92263f

Browse files
committed
Ruby 2.6 escapes InvalidURIError output.
ruby/ruby@684cdb4
1 parent 4f53f95 commit d92263f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/error_tests.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
Excon.new('http://localhost', path: "foo\r\nbar: baz")
3636
false
3737
rescue => err
38-
err.to_s.include? "foo\r\nbar: baz"
38+
err.to_s.include?(RUBY_VERSION >= '2.6.0' ? 'foo\r\nbar: baz' : "foo\r\nbar: baz")
3939
end
4040
end
4141

0 commit comments

Comments
 (0)