Skip to content
Snippets Groups Projects
Commit da1cf5b9 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

enable callbacks for specs after notification

parent c7bd99b0
Loading
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment