Sha256: 2619582afac58ae96f83d3c06380f7a9c437898fa5a8d735ce1e4b9c6de8bd13
Contents?: true
Size: 1.01 KB
Versions: 4
Compression:
Stored size: 1.01 KB
Contents
require File.expand_path('spec_helper', File.dirname(__FILE__)) describe 'standard query', :type => :query do it_should_behave_like "scoped query" it_should_behave_like "query with advanced manipulation" it_should_behave_like "query with connective scope" it_should_behave_like "query with dynamic field support" it_should_behave_like "facetable query" it_should_behave_like "fulltext query" it_should_behave_like "query with highlighting support" it_should_behave_like "sortable query" it_should_behave_like "query with text field scoping" it_should_behave_like "geohash query" it_should_behave_like "spatial query" it_should_behave_like "stats query" it_should_behave_like "spellcheck query" it 'adds a no-op query to :q parameter when no :q provided' do session.search Post do with :title, 'My Pet Post' end expect(connection).to have_last_search_with(:q => '*:*') end private def search(*classes, &block) classes[0] ||= Post session.search(*classes, &block) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
sunspot-2.5.0 | spec/api/query/standard_spec.rb |
sunspot-2.4.0 | spec/api/query/standard_spec.rb |
sunspot-2.3.0 | spec/api/query/standard_spec.rb |
sunspot-2.2.8 | spec/api/query/standard_spec.rb |