enable callbacks for specs after notification
This commit is contained in:
parent
c7bd99b040
commit
da1cf5b9e7
|
@ -2,7 +2,8 @@ require 'spec_helper'
|
|||
|
||||
describe NotificationService do
|
||||
# Disable observers to prevent factory trigger notification service
|
||||
before { ActiveRecord::Base.observers.disable :all }
|
||||
before(:all) { ActiveRecord::Base.observers.disable :all }
|
||||
after(:all) { ActiveRecord::Base.observers.enable :all }
|
||||
|
||||
let(:notification) { NotificationService.new }
|
||||
|
||||
|
|
Loading…
Reference in a new issue