spec/unit/headers_spec.rb in elasticsearch-8.10.0 vs spec/unit/headers_spec.rb in elasticsearch-8.11.0

- old
+ new

@@ -24,10 +24,10 @@ it 'performs the request with the header' do allow(client).to receive(:perform_request) { OpenStruct.new(body: '') } expect { client.search(headers: headers) }.not_to raise_error expect(client).to have_received(:perform_request) - .with('GET', '_search', {}, nil, headers) + .with('GET', '_search', {}, nil, headers, { endpoint: 'search' }) end end context 'when a header is set on an endpoint request and on initialization' do let!(:client) do