We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f53f95 commit d92263fCopy full SHA for d92263f
tests/error_tests.rb
@@ -35,7 +35,7 @@
35
Excon.new('http://localhost', path: "foo\r\nbar: baz")
36
false
37
rescue => err
38
- 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")
39
end
40
41
0 commit comments