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