diff --git a/spec/search_builders/hyrax/admin_admin_set_member_search_builder_spec.rb b/spec/search_builders/hyrax/admin_admin_set_member_search_builder_spec.rb index 108aa82028..e7357adc38 100644 --- a/spec/search_builders/hyrax/admin_admin_set_member_search_builder_spec.rb +++ b/spec/search_builders/hyrax/admin_admin_set_member_search_builder_spec.rb @@ -13,7 +13,17 @@ it 'searches for valid work types' do expect(builder.filter_models(solr_params)) - .to contain_exactly("{!terms f=has_model_ssim}Monograph,#{Hyrax.config.collection_class}") + .to contain_exactly(include("{!terms f=has_model_ssim}Monograph")) + end + + it 'searches for collections indexed as ActiveFedora' do + expect(builder.filter_models(solr_params)) + .to contain_exactly(include("Collection")) + end + + it 'searches for collections indexed as valkyrie' do + expect(builder.filter_models(solr_params)) + .to contain_exactly(include(Hyrax.config.collection_model)) end it 'does not limit to active only' do