Commit da1cf5b9e70dc16113f441e17ad33c4e53bc1ca5
1 parent
c7bd99b0
Exists in
master
and in
4 other branches
enable callbacks for specs after notification
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
spec/services/notification_service_spec.rb
... | ... | @@ -2,7 +2,8 @@ require 'spec_helper' |
2 | 2 | |
3 | 3 | describe NotificationService do |
4 | 4 | # Disable observers to prevent factory trigger notification service |
5 | - before { ActiveRecord::Base.observers.disable :all } | |
5 | + before(:all) { ActiveRecord::Base.observers.disable :all } | |
6 | + after(:all) { ActiveRecord::Base.observers.enable :all } | |
6 | 7 | |
7 | 8 | let(:notification) { NotificationService.new } |
8 | 9 | ... | ... |