diff options
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/shared_examples/models/integrations/has_web_hook_shared_examples.rb | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/spec/support/shared_examples/models/integrations/has_web_hook_shared_examples.rb b/spec/support/shared_examples/models/integrations/has_web_hook_shared_examples.rb index 2f693edeb53..64b2dcb8d36 100644 --- a/spec/support/shared_examples/models/integrations/has_web_hook_shared_examples.rb +++ b/spec/support/shared_examples/models/integrations/has_web_hook_shared_examples.rb @@ -7,30 +7,6 @@ RSpec.shared_examples Integrations::HasWebHook do it { is_expected.to have_one(:service_hook).inverse_of(:integration).with_foreign_key(:service_id) } end - describe 'callbacks' do - it 'calls #update_web_hook! when enabled' do - expect(integration).to receive(:update_web_hook!) - - integration.active = true - integration.save! - end - - it 'does not call #update_web_hook! when disabled' do - expect(integration).not_to receive(:update_web_hook!) - - integration.active = false - integration.save! - end - - it 'does not call #update_web_hook! when validation fails' do - expect(integration).not_to receive(:update_web_hook!) - - integration.active = true - integration.project = nil - expect(integration.save).to be(false) - end - end - describe '#hook_url' do it 'returns a string' do expect(integration.hook_url).to be_a(String) |