spec/elasticsearch/api/actions/ingest/simulate_spec.rb in elasticsearch-api-7.8.1 vs spec/elasticsearch/api/actions/ingest/simulate_spec.rb in elasticsearch-api-7.9.0.pre
- old
+ new
@@ -16,30 +16,29 @@
# under the License.
require 'spec_helper'
describe 'client.ingest#simulate' do
-
let(:expected_args) do
[
- 'GET',
- url,
- {},
- {},
- {}
+ method,
+ url,
+ {},
+ {},
+ {}
]
end
+ let(:method) { 'POST' }
let(:url) do
'_ingest/pipeline/_simulate'
end
it 'performs the request' do
expect(client_double.ingest.simulate(body: {})).to eq({})
end
context 'when a pipeline id is provided' do
-
let(:url) do
'_ingest/pipeline/foo/_simulate'
end
it 'performs the request' do