Sha256: fcb18c07a19eda0e909b1dda1e8b27587aca33d66d030fd3cf42fd10643d1d73
Contents?: true
Size: 715 Bytes
Versions: 1
Compression:
Stored size: 715 Bytes
Contents
describe 'typed query' do it 'properly escapes namespaced type names' do session.search(Namespaced::Comment) expect(connection).to have_last_search_with(:fq => ['type:"Namespaced\:\:Comment"']) end it 'builds search for multiple types' do session.search(Post, Namespaced::Comment) expect(connection).to have_last_search_with(:fq => ['type:(Post OR "Namespaced\:\:Comment")']) end it 'searches type of subclass when superclass is configured' do session.search PhotoPost expect(connection).to have_last_search_with(:fq => ['type:PhotoPost']) end it 'raises an ArgumentError if no types given to search' do expect { session.search }.to raise_error(ArgumentError) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sunspot-2.7.1 | spec/api/query/types_spec.rb |