DEV: Use `before_all` to run code before prefabrication

Followup to e9897d295f
This commit is contained in:
David Taylor 2019-10-24 12:27:35 +01:00
parent 690db4fd36
commit f5d6236ad2
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ require 'rails_helper'
describe UserSearch do
fab!(:indexer) { SearchIndexer.enable } # Enable before fab! topics/users
before_all { SearchIndexer.enable } # Enable for prefabrication
before { SearchIndexer.enable } # Enable for each test
fab!(:topic) { Fabricate :topic }