DEV: Fix the build.

Follow-up to 650da7b626
This commit is contained in:
Guo Xiang Tan 2020-11-09 14:06:07 +08:00 committed by Alan Guo Xiang Tan
parent 650da7b626
commit f70b330e7a
1 changed files with 4 additions and 2 deletions

View File

@ -3,8 +3,10 @@
require 'rails_helper'
describe Jobs::ReindexSearch do
before { SearchIndexer.enable }
after { SearchIndexer.disable }
before do
SearchIndexer.enable
Jobs.run_immediately!
end
let(:locale) { 'fr' }
# This works since test db has a small record less than limit.