diff options
author | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2012-07-20 13:08:59 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2012-07-20 13:08:59 +0400 |
commit | 60ee383eb96285d1bc21e7f439306d5eb55048bd (patch) | |
tree | b6e1437ec8d4a5dda2812efc3323672936b990c4 /spec/models | |
parent | d9cd6269e991e187c2acf272240fcb332270a5c4 (diff) |
Enable observe for system hooks
Diffstat (limited to 'spec/models')
-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) |