diff options
author | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2012-07-20 12:08:59 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2012-07-20 12:08:59 +0300 |
commit | 60ee383eb96285d1bc21e7f439306d5eb55048bd (patch) | |
tree | b6e1437ec8d4a5dda2812efc3323672936b990c4 | |
parent | d9cd6269e991e187c2acf272240fcb332270a5c4 (diff) | |
download | gitlab-ce-60ee383eb96285d1bc21e7f439306d5eb55048bd.tar.gz |
Enable observe for system hooks
-rw-r--r-- | spec/models/system_hook_spec.rb | 2 |
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) |