mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 08:49:03 +08: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:
@ -303,7 +303,7 @@ describe Topic do
|
||||
|
||||
context 'with a similar topic' do
|
||||
let!(:topic) {
|
||||
ActiveRecord::Base.observers.enable :search_observer
|
||||
SearchIndexer.enable
|
||||
post = create_post(title: "Evil trout is the dude who posted this topic")
|
||||
post.topic
|
||||
}
|
||||
|
Reference in New Issue
Block a user