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
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2012-07-20 13:08:59 +0400
committerDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2012-07-20 13:08:59 +0400
commit60ee383eb96285d1bc21e7f439306d5eb55048bd (patch)
treeb6e1437ec8d4a5dda2812efc3323672936b990c4 /spec/models
parentd9cd6269e991e187c2acf272240fcb332270a5c4 (diff)
Enable observe for system hooks
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/system_hook_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/models/system_hook_spec.rb b/spec/models/system_hook_spec.rb
index 661ba6b85cb..4ad4d1681fc 100644
--- a/spec/models/system_hook_spec.rb
+++ b/spec/models/system_hook_spec.rb
@@ -2,6 +2,8 @@ require "spec_helper"
describe SystemHook do
describe "execute" do
+ before(:each) { ActiveRecord::Base.observers.enable(:all) }
+
before(:each) do
@system_hook = Factory :system_hook
WebMock.stub_request(:post, @system_hook.url)