Fix a bunch of rubocop offenses

This commit is contained in:
Lars Henrik Mai 2020-03-09 14:55:53 +01:00
parent 106c6800a4
commit 4e1e8b798a
17 changed files with 57 additions and 222 deletions

View file

@ -209,7 +209,7 @@ RSpec.feature 'Basic search', type: :feature, elasticsearch: true do
end
scenario "Finds no 'Fahrrad' with search 'Rad'" do
paper = FactoryBot.create(:paper, name: 'Fahrrad')
FactoryBot.create(:paper, name: 'Fahrrad')
Paper.__elasticsearch__.refresh_index!
visit search_path body: 'leipzig', paper_search: { query: 'Rad' }
expect(page).to have_content('0 Dokumente in der Datenbank')