enable callbacks for specs after notification

master
Dmitriy Zaporozhets 2013-03-26 15:16:06 +02:00
parent c7bd99b040
commit da1cf5b9e7
1 changed files with 2 additions and 1 deletions

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 }