Sha256: 0ac27b1427fb260f7dcb61ce271bc89164f7c3198663fa02e54b7a902356c71a
Contents?: true
Size: 771 Bytes
Versions: 44
Compression:
Stored size: 771 Bytes
Contents
require 'spec_helper' describe Krikri::RandomSearchIndexDocumentBuilder do describe '#document' do context 'without provider id' do it 'returns nil with no record matches' do expect(subject.document).to be_nil end context 'with record' do include_context 'with indexed item' it 'gets a random document' do expect(subject.document).to be_a Krikri::SearchIndexDocument end end end context 'with provider id' do before { subject.provider_id = provider.id } context 'with record' do include_context 'with indexed item' it 'gets a random document' do expect(subject.document).to be_a Krikri::SearchIndexDocument end end end end end
Version data entries
44 entries across 44 versions & 1 rubygems