Sha256: 22235eeb151e2fdbec24d980f7840373a97bc2977f4d158408780742673b5b96

Contents?: true

Size: 464 Bytes

Versions: 4

Compression:

Stored size: 464 Bytes

Contents

require File.expand_path('spec_helper', File.dirname(__FILE__))

describe "stats component" do
  it "sends stats parameters to solr" do
    session.search Content do
      stat :visibility, :facet => :published_at
    end

    connection.should have_last_search_including(:stats, "true")
    connection.should have_last_search_including(:"stats.field", "visibility_f")
    connection.should have_last_search_including(:"stats.facet", "published_at_d")
  end
  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sunspot_stats-0.0.6 spec/api/query/stats_spec.rb
sunspot_stats-0.0.5 spec/api/query/stats_spec.rb
sunspot_stats-0.0.4 spec/api/query/stats_spec.rb
sunspot_stats-0.0.3 spec/api/query/stats_spec.rb