Remove pending test in SearchControllerSpec

This commit is contained in:
Lars Henrik Mai 2020-03-09 12:14:13 +01:00
parent c08ce6864c
commit 3c9af21f2c

View file

@ -20,15 +20,6 @@ RSpec.describe SearchController, type: :controller, elasticsearch: true do
expect(response).to render_template(:index)
end
it 'executes the search with PaperSearch parameters' do
pending('simplify search implementation')
result_page = double('page', results: []) # MEH
response = double('es_response', page: result_page)
expect(Paper).to receive(:search).and_return(response)
get :index, body: 'leipzig'
end
it 'returns rss' do
get :index, format: 'rss', body: 'leipzig'
expect(response).to be_success