Skip to content

Commit ccfa635

Browse files
authored
Merge pull request excon#691 from voxik/f26compat
Ruby 2.6 escapes InvalidURIError output.
2 parents 4f53f95 + d92263f commit ccfa635

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)