spec/services/blacklight/search_service_spec.rb in blacklight-7.17.2 vs spec/services/blacklight/search_service_spec.rb in blacklight-7.18.0
- old
+ new
@@ -475,10 +475,10 @@
{ field: 'A' }, { field: 'B' }, { field: 'C' }
])
end
before do
- blacklight_config.view.opensearch.title_field = :field
+ blacklight_config.view.opensearch(title_field: :field)
allow(repository).to receive(:search).and_return(mock_response)
end
it 'contains the original user query as the first element in the response' do
expect(service.opensearch_response.first).to eq 'Book'