DEV: Use `before_all` to run code before prefabrication
Followup to e9897d295f
This commit is contained in:
parent
690db4fd36
commit
f5d6236ad2
|
@ -4,7 +4,7 @@ require 'rails_helper'
|
||||||
|
|
||||||
describe UserSearch do
|
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
|
before { SearchIndexer.enable } # Enable for each test
|
||||||
|
|
||||||
fab!(:topic) { Fabricate :topic }
|
fab!(:topic) { Fabricate :topic }
|
||||||
|
|
Loading…
Reference in New Issue