Skip to content

Commit 0ff4a31

Browse files
committed
Specs: fix specs on JRuby 9.2 (2.5 compat)
1 parent 87a624e commit 0ff4a31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/influxdb/client_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
it "escapes params" do
4848
url = subject.send(:full_url, "/unknown", value: ' !@#$%^&*()/\\_+-=?|`~')
4949
encoded_fragment = "value=+%21%40%23%24%25%5E%26%2A%28%29%2F%5C_%2B-%3D%3F%7C%60"
50-
encoded_fragment << (RUBY_ENGINE == "ruby" && RUBY_VERSION >= "2.5.0" ? "~" : "%7E")
50+
encoded_fragment << (RUBY_VERSION >= "2.5.0" ? "~" : "%7E")
5151
expect(url).to include(encoded_fragment)
5252
end
5353

0 commit comments

Comments
 (0)