spec/elasticsearch/api/actions/indices/add_block_spec.rb in elasticsearch-api-7.17.11 vs spec/elasticsearch/api/actions/indices/add_block_spec.rb in elasticsearch-api-8.0.0.pre1
- old
+ new
@@ -32,10 +32,10 @@
let(:block) { 'test_block' }
it 'performs the request' do
expect(
client_double.indices.add_block(index: index, block: block)
- ).to eq({})
+ ).to be_a Elasticsearch::API::Response
end
context 'when an index is not specified' do
let(:client) do
Class.new { include Elasticsearch::API }.new