spec/controllers/collections_controller_spec.rb in commonwealth-vlr-engine-0.0.1 vs spec/controllers/collections_controller_spec.rb in commonwealth-vlr-engine-0.0.2
- old
+ new
@@ -82,12 +82,12 @@
expect(@mock_controller.blacklight_config.facet_fields['physical_location_ssim'].collapse).to eq(true)
end
end
describe 'collections_limit' do
- it 'should add :collections filter to search_params_logic' do
+ it 'should set the correct search builder class' do
@mock_controller.send(:collections_limit)
- expect(@mock_controller.search_params_logic).to include(:collections_filter)
+ expect(@mock_controller.blacklight_config.search_builder_class).to eq(CommonwealthCollectionsSearchBuilder)
end
end
describe 'get_collection_image_info' do
it 'should return a hash with the collection image object title and pid' do