Sha256: 606cb20fb4dc403c4f7d85723242fae941e9253375963b3f00b9948a6d50ce6e
Contents?: true
Size: 369 Bytes
Versions: 5
Compression:
Stored size: 369 Bytes
Contents
RSpec.describe ROM::Elasticsearch::Dataset, '#delete' do subject(:dataset) do ROM::Elasticsearch::Dataset.new(client, params: { index: :users, type: :user }) end include_context 'user fixtures' it 'deletes data' do expect(dataset.to_a.size).to eql(3) dataset.refresh.delete dataset.refresh expect(dataset.to_a.size).to eql(0) end end
Version data entries
5 entries across 5 versions & 1 rubygems