spec/elasticsearch/api/actions/search_mvt_spec.rb in elasticsearch-api-7.17.11 vs spec/elasticsearch/api/actions/search_mvt_spec.rb in elasticsearch-api-8.0.0.pre1
- old
+ new
@@ -18,24 +18,25 @@
require 'spec_helper'
describe 'client#search_mvt' do
let(:expected_args) do
[
- 'POST',
+ method,
url,
params,
body,
{}
]
end
context 'with right parameters' do
+ let(:method) { 'POST' }
let(:url) { 'foo/_mvt/field/10/57.2127/6.2348' }
let(:params) { {} }
let(:body) { nil }
it 'performs the request' do
- expect(client_double.search_mvt(index: 'foo', field: 'field', zoom: 10, x: 57.2127, y: 6.2348)).to eq({})
+ expect(client_double.search_mvt(index: 'foo', field: 'field', zoom: 10, x: 57.2127, y: 6.2348)).to be_a Elasticsearch::API::Response
end
end
context 'when a param is missing' do
let(:client) do