Commit 60ee383e authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Enable observe for system hooks

parent d9cd6269
...@@ -2,6 +2,8 @@ require "spec_helper" ...@@ -2,6 +2,8 @@ require "spec_helper"
describe SystemHook do describe SystemHook do
describe "execute" do describe "execute" do
before(:each) { ActiveRecord::Base.observers.enable(:all) }
before(:each) do before(:each) do
@system_hook = Factory :system_hook @system_hook = Factory :system_hook
WebMock.stub_request(:post, @system_hook.url) WebMock.stub_request(:post, @system_hook.url)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment