diff --git a/spec/models/system_hook_spec.rb b/spec/models/system_hook_spec.rb index 661ba6b85cbc401fc58f6b6a76c506c0cc24fd3e..4ad4d1681fc3ca00f7cf468f25f2cea016e00608 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)