Sha256: bc4807b5f6f18b7487f729983e0f5c6695b94362f668229a3bd7f26fc861df8a
Contents?: true
Size: 1.31 KB
Versions: 3
Compression:
Stored size: 1.31 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 connective scope and boost" 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 it 'adds a no-op query to :q parameter when only a boost query provided' do session.search Post do boost(2) do with :title, 'My Pet Post' end 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sunspot-2.7.1 | spec/api/query/standard_spec.rb |
sunspot-2.7.0 | spec/api/query/standard_spec.rb |
sunspot-2.6.0 | spec/api/query/standard_spec.rb |