Commit 4003275e authored by serenafang's avatar serenafang

Remove group spec, will iteate

parent 5a88372c
...@@ -898,37 +898,6 @@ RSpec.describe Group do ...@@ -898,37 +898,6 @@ RSpec.describe Group do
end end
end end
describe "#execute_hooks" do
context "group_webhooks", :sidekiq_inline do
let(:group) { create(:group) }
let(:group_hook) { create(:group_hook, group: group, member_events: true) }
let(:data) { { some: 'info' } }
context 'when group_webhooks feature is enabled' do
before do
stub_licensed_features(group_webhooks: true)
end
let(:service) { double }
it 'executes the hook' do
expect(service).to receive(:async_execute).once
expect(WebHookService).to receive(:new)
group.execute_hooks(data, :member_hooks)
end
end
it 'does not execute the hook when the feature is disabled' do
stub_licensed_features(group_webhooks: false)
expect(WebHookService).not_to receive(:new)
group.execute_hooks(data, :member_hooks)
end
end
end
describe '#self_or_ancestor_marked_for_deletion' do describe '#self_or_ancestor_marked_for_deletion' do
context 'delayed deletion feature is not available' do context 'delayed deletion feature is not available' do
before do before do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment