enable callbacks for specs after notification

This commit is contained in:
Dmitriy Zaporozhets 2013-03-26 15:16:06 +02:00
parent c7bd99b040
commit da1cf5b9e7

View file

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