Sha256: 222d37d8a2565b7c693e7d8811fef557379d9ca3d2d0d3445456c1ef7a001845

Contents?: true

Size: 951 Bytes

Versions: 19

Compression:

Stored size: 951 Bytes

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 'adds a no-op query to :q parameter when no :q provided' do
    session.search Post do
      with :title, 'My Pet Post'
    end
    connection.should have_last_search_with(:q => '*:*')
  end

  private

  def search(*classes, &block)
    classes[0] ||= Post
    session.search(*classes, &block)
  end
end

Version data entries

19 entries across 19 versions & 5 rubygems

Version Path
sunspot-2.1.0 spec/api/query/standard_spec.rb
sunspot-2.0.0 spec/api/query/standard_spec.rb
sunspot-2.0.0.pre.130115 spec/api/query/standard_spec.rb
gojee-sunspot-2.0.5 spec/api/query/standard_spec.rb
sunspot-2.0.0.pre.120925 spec/api/query/standard_spec.rb
sunspot_solr-2.0.0.pre.120924 sunspot/spec/api/query/standard_spec.rb
sunspot_rails-2.0.0.pre.120924 sunspot/spec/api/query/standard_spec.rb
sunspot-2.0.0.pre.120924 sunspot/spec/api/query/standard_spec.rb
gojee-sunspot-2.0.4 spec/api/query/standard_spec.rb
gojee-sunspot-2.0.2 spec/api/query/standard_spec.rb
sunspot-2.0.0.pre.120720 spec/api/query/standard_spec.rb
sunspot-2.0.0.pre.120417 spec/api/query/standard_spec.rb
sunspot-2.0.0.pre.120415 spec/api/query/standard_spec.rb
erichummel-sunspot-2.0.0.pre.111215d spec/api/query/standard_spec.rb
erichummel-sunspot-2.0.0.pre.111215c spec/api/query/standard_spec.rb
erichummel-sunspot-2.0.0.pre.111215b spec/api/query/standard_spec.rb
erichummel-sunspot-2.0.0.pre.111215a spec/api/query/standard_spec.rb
erichummel-sunspot-2.0.0.pre.111215 spec/api/query/standard_spec.rb
sunspot-2.0.0.pre.111215 spec/api/query/standard_spec.rb