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:
Sam
2016-12-22 13:13:14 +11:00
parent 31cda7b372
commit 0a78ae739d
16 changed files with 85 additions and 44 deletions

View File

@ -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
}