Sha256: e7ceb6afea4695aaae5fc7c62c013101d5c33d911868d72024caec2b101ce014

Contents?: true

Size: 496 Bytes

Versions: 1

Compression:

Stored size: 496 Bytes

Contents

require 'spec_helper'

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

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
curation_concerns-1.5.0 spec/search_builders/curation_concerns/admin_set_search_builder_spec.rb