Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-03-26 17:16:06 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-03-26 17:16:06 +0400
commitda1cf5b9e70dc16113f441e17ad33c4e53bc1ca5 (patch)
tree74aae3bc12b8bda549cb84b4c29801ebf2248389 /spec
parentc7bd99b04053421726012d77f85919b1d6fc0387 (diff)
enable callbacks for specs after notification
Diffstat (limited to 'spec')
-rw-r--r--spec/services/notification_service_spec.rb3
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 }