mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Use before_all to run code before prefabrication
Followup to e9897d295f
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user