mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Remove SearchObserver, aim is to remove all observers
rails-observers gem is mostly unmaintained and is a pain to carry forward new implementation contains significantly less magic as a bonus
This commit is contained in:
@@ -18,7 +18,7 @@ describe UserSearch do
|
||||
let(:staged) { Fabricate :staged }
|
||||
|
||||
before do
|
||||
ActiveRecord::Base.observers.enable :all
|
||||
SearchIndexer.enable
|
||||
|
||||
Fabricate :post, user: user1, topic: topic
|
||||
Fabricate :post, user: user2, topic: topic2
|
||||
|
||||
Reference in New Issue
Block a user