Sha256: efb3c55bbc8c9f31f7dbe64ef8b893a49d8cb5113b701cf6454bb746ddcaed8c
Contents?: true
Size: 424 Bytes
Versions: 5
Compression:
Stored size: 424 Bytes
Contents
RSpec.describe ROM::Elasticsearch::Dataset, '#query_string' do subject(:dataset) do ROM::Elasticsearch::Dataset.new(client, params: { index: :users, type: :user }) end include_context 'user fixtures' it 'returns data matching query string' do expect(dataset.query_string('username:alice').to_a).to eql([{'username' => 'alice'}]) expect(dataset.query_string('username:nisse').to_a).to eql([]) end end
Version data entries
5 entries across 5 versions & 1 rubygems