diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-03-26 17:16:06 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-03-26 17:16:06 +0400 |
commit | da1cf5b9e70dc16113f441e17ad33c4e53bc1ca5 (patch) | |
tree | 74aae3bc12b8bda549cb84b4c29801ebf2248389 /spec | |
parent | c7bd99b04053421726012d77f85919b1d6fc0387 (diff) |
enable callbacks for specs after notification
Diffstat (limited to 'spec')
-rw-r--r-- | spec/services/notification_service_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/services/notification_service_spec.rb b/spec/services/notification_service_spec.rb index a802d50f10a..0edfb21681a 100644 --- a/spec/services/notification_service_spec.rb +++ b/spec/services/notification_service_spec.rb @@ -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 } |