spec/elasticsearch/api/utils_spec.rb in elasticsearch-api-7.1.0 vs spec/elasticsearch/api/utils_spec.rb in elasticsearch-api-7.2.0

- old
+ new

@@ -42,10 +42,10 @@ it 'users CGI.escape by default' do expect(CGI).to receive(:escape).and_call_original expect(utils.__escape('foo bar')).to eq('foo+bar') end - it 'uses the escape_utils gem when available', unless: JRUBY do + it 'uses the escape_utils gem when available', unless: defined?(JRUBY_VERSION) do require 'escape_utils' expect(CGI).not_to receive(:escape) expect(EscapeUtils).to receive(:escape_url).and_call_original expect(utils.__escape('foo bar')).to eq('foo+bar') end