Commit 60ee383eb96285d1bc21e7f439306d5eb55048bd
1 parent
d9cd6269
Exists in
master
and in
4 other branches
Enable observe for system hooks
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
spec/models/system_hook_spec.rb
| @@ -2,6 +2,8 @@ require "spec_helper" | @@ -2,6 +2,8 @@ require "spec_helper" | ||
| 2 | 2 | ||
| 3 | describe SystemHook do | 3 | describe SystemHook do |
| 4 | describe "execute" do | 4 | describe "execute" do |
| 5 | + before(:each) { ActiveRecord::Base.observers.enable(:all) } | ||
| 6 | + | ||
| 5 | before(:each) do | 7 | before(:each) do |
| 6 | @system_hook = Factory :system_hook | 8 | @system_hook = Factory :system_hook |
| 7 | WebMock.stub_request(:post, @system_hook.url) | 9 | WebMock.stub_request(:post, @system_hook.url) |