diff options
author | Gabriel Mazetto <brodock@gmail.com> | 2017-05-03 05:36:13 +0300 |
---|---|---|
committer | Gabriel Mazetto <brodock@gmail.com> | 2017-05-13 01:26:48 +0300 |
commit | f661980904f718440cc700b7d1f38ea8bf0e5480 (patch) | |
tree | 7933eee3b85e6af5da9db8223b6d870d8395926f /spec/models | |
parent | 8b17fb61b61b1f9707428c2333db2de29c4d3bcf (diff) |
Added repository_update hook
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/hooks/system_hook_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/models/hooks/system_hook_spec.rb b/spec/models/hooks/system_hook_spec.rb index 8acec805584..a9e3ac3b679 100644 --- a/spec/models/hooks/system_hook_spec.rb +++ b/spec/models/hooks/system_hook_spec.rb @@ -105,4 +105,12 @@ describe SystemHook, models: true do ).once end end + + describe '.repository_update_hooks' do + it 'returns hooks for repository update events only' do + hook = create(:system_hook, repository_update_events: true) + create(:system_hook, repository_update_events: false) + expect(SystemHook.repository_update_hooks).to eq([hook]) + end + end end |