From f5d6236ad2291cd506fbc65520aa1f2cfc94f79f Mon Sep 17 00:00:00 2001 From: David Taylor Date: Thu, 24 Oct 2019 12:27:35 +0100 Subject: [PATCH] DEV: Use `before_all` to run code before prefabrication Followup to e9897d295f7eef1be1bb7c414a2fc50c40df468f --- spec/models/user_search_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/user_search_spec.rb b/spec/models/user_search_spec.rb index f004a04637d..4953a4e29aa 100644 --- a/spec/models/user_search_spec.rb +++ b/spec/models/user_search_spec.rb @@ -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 }