enable callbacks for specs after notification
This commit is contained in:
parent
c7bd99b040
commit
da1cf5b9e7
1 changed files with 2 additions and 1 deletions
|
@ -2,7 +2,8 @@ require 'spec_helper'
|
||||||
|
|
||||||
describe NotificationService do
|
describe NotificationService do
|
||||||
# Disable observers to prevent factory trigger notification service
|
# 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 }
|
let(:notification) { NotificationService.new }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue