Enable observe for system hooks
This commit is contained in:
parent
d9cd6269e9
commit
60ee383eb9
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue