spec/elasticsearch/api/actions/snapshot/create_spec.rb in elasticsearch-api-7.17.11 vs spec/elasticsearch/api/actions/snapshot/create_spec.rb in elasticsearch-api-8.0.0.pre1
- old
+ new
@@ -44,8 +44,8 @@
client.snapshot.create(repository: 'foo', body: {})
}.to raise_exception(ArgumentError)
end
it 'performs the request' do
- expect(client_double.snapshot.create(repository: 'foo', snapshot: 'bar', body: {})).to eq({})
+ expect(client_double.snapshot.create(repository: 'foo', snapshot: 'bar', body: {})).to be_a Elasticsearch::API::Response
end
end