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 "execute" do
|
||||
before(:each) { ActiveRecord::Base.observers.enable(:all) }
|
||||
|
||||
before(:each) do
|
||||
@system_hook = Factory :system_hook
|
||||
WebMock.stub_request(:post, @system_hook.url)
|
||||
|
|
Loading…
Reference in a new issue