Sha256: 3a8f57d816546ec8b8d5352f13ef9533b2484df9a272786e66154858a842c9a7
Contents?: true
Size: 655 Bytes
Versions: 7
Compression:
Stored size: 655 Bytes
Contents
require 'spec_helper' RSpec.describe Sufia::SingleAdminSetSearchBuilder do let(:ability) { instance_double(Ability, admin?: true) } let(:context) do double(blacklight_config: CatalogController.blacklight_config, current_ability: ability) end let(:builder) { described_class.new(context) } describe "#query" do before do expect(builder).to receive(:find_one) end subject { builder.with(id: '123').query.fetch('fq') } it do is_expected.to match_array ["", "-suppressed_bsi:true", "{!terms f=has_model_ssim}AdminSet"] end end end
Version data entries
7 entries across 7 versions & 1 rubygems