mirror of
https://github.com/discourse/discourse.git
synced 2025-03-01 00:39:17 +00:00
DEV: Use before_all
to run code before prefabrication
Followup to e9897d295f7eef1be1bb7c414a2fc50c40df468f
This commit is contained in:
parent
690db4fd36
commit
f5d6236ad2
@ -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 }
|
||||
|
Loading…
x
Reference in New Issue
Block a user