Commit 60ee383eb96285d1bc21e7f439306d5eb55048bd

Authored by Dmitriy Zaporozhets
1 parent d9cd6269

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 2  
3 3 describe SystemHook do
4 4 describe "execute" do
  5 + before(:each) { ActiveRecord::Base.observers.enable(:all) }
  6 +
5 7 before(:each) do
6 8 @system_hook = Factory :system_hook
7 9 WebMock.stub_request(:post, @system_hook.url)
... ...