Sha256: c9a64b02ca635e3fd8d19b5356c00381ee21f4ffcee11b83d62d848d82a298dc

Contents?: true

Size: 578 Bytes

Versions: 17

Compression:

Stored size: 578 Bytes

Contents

require 'spec_helper'

describe CurationConcerns::AdminSetSearchBuilder do
  let(:context) { double('context') }
  let(:solr_params) { { fq: [] } }

  let(:builder) { described_class.new(context, :read) }
  describe '#filter_models' do
    before { builder.filter_models(solr_params) }

    it 'adds AdminSet to query' do
      expect(solr_params[:fq].first).to include('{!terms f=has_model_ssim}AdminSet')
    end
  end

  describe ".default_processor_chain" do
    subject { described_class.default_processor_chain }
    it { is_expected.to include :filter_models }
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
curation_concerns-1.7.8 spec/search_builders/curation_concerns/admin_set_search_builder_spec.rb
curation_concerns-1.7.7 spec/search_builders/curation_concerns/admin_set_search_builder_spec.rb
curation_concerns-2.0.0 spec/search_builders/curation_concerns/admin_set_search_builder_spec.rb
curation_concerns-2.0.0.rc2 spec/search_builders/curation_concerns/admin_set_search_builder_spec.rb
curation_concerns-1.7.6 spec/search_builders/curation_concerns/admin_set_search_builder_spec.rb
curation_concerns-1.7.5 spec/search_builders/curation_concerns/admin_set_search_builder_spec.rb
curation_concerns-1.7.4 spec/search_builders/curation_concerns/admin_set_search_builder_spec.rb
curation_concerns-1.7.3 spec/search_builders/curation_concerns/admin_set_search_builder_spec.rb
curation_concerns-1.7.2 spec/search_builders/curation_concerns/admin_set_search_builder_spec.rb
curation_concerns-2.0.0.rc1 spec/search_builders/curation_concerns/admin_set_search_builder_spec.rb
curation_concerns-1.7.1 spec/search_builders/curation_concerns/admin_set_search_builder_spec.rb
curation_concerns-1.7.0 spec/search_builders/curation_concerns/admin_set_search_builder_spec.rb
curation_concerns-1.7.0.beta1 spec/search_builders/curation_concerns/admin_set_search_builder_spec.rb
curation_concerns-1.6.3 spec/search_builders/curation_concerns/admin_set_search_builder_spec.rb
curation_concerns-1.6.2 spec/search_builders/curation_concerns/admin_set_search_builder_spec.rb
curation_concerns-1.6.1 spec/search_builders/curation_concerns/admin_set_search_builder_spec.rb
curation_concerns-1.6.0 spec/search_builders/curation_concerns/admin_set_search_builder_spec.rb