Skip to content

Commit d1871a0

Browse files
committed
[API] The type argument is not required in the index method
1 parent 2f2924d commit d1871a0

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

elasticsearch-api/spec/elasticsearch/api/actions/index_document_spec.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,6 @@
5454
}.to raise_exception(ArgumentError)
5555
end
5656

57-
it 'requires the :type argument' do
58-
expect {
59-
client.index(index: 'foo')
60-
}.to raise_exception(ArgumentError)
61-
end
62-
6357
it 'performs the request' do
6458
expect(client_double.index(index: 'foo', type: 'bar', body: { foo: 'bar' })).to eq({})
6559
end

0 commit comments

Comments
 (0)