diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 12:55:51 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 12:55:51 +0300 |
commit | e8d2c2579383897a1dd7f9debd359abe8ae8373d (patch) | |
tree | c42be41678c2586d49a75cabce89322082698334 /spec/models/integrations/slack_spec.rb | |
parent | fc845b37ec3a90aaa719975f607740c22ba6a113 (diff) |
Add latest changes from gitlab-org/gitlab@14-1-stable-eev14.1.0-rc42
Diffstat (limited to 'spec/models/integrations/slack_spec.rb')
-rw-r--r-- | spec/models/integrations/slack_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/models/integrations/slack_spec.rb b/spec/models/integrations/slack_spec.rb index e598c528967..4661d9c8291 100644 --- a/spec/models/integrations/slack_spec.rb +++ b/spec/models/integrations/slack_spec.rb @@ -10,7 +10,7 @@ RSpec.describe Integrations::Slack do stub_request(:post, "https://slack.service.url/") end - let_it_be(:slack_service) { create(:slack_service, branches_to_be_notified: 'all') } + let_it_be(:slack_integration) { create(:integrations_slack, branches_to_be_notified: 'all') } it 'uses only known events', :aggregate_failures do described_class::SUPPORTED_EVENTS_FOR_USAGE_LOG.each do |action| @@ -26,7 +26,7 @@ RSpec.describe Integrations::Slack do it 'increases the usage data counter' do expect(Gitlab::UsageDataCounters::HLLRedisCounter).to receive(:track_event).with(event_name, values: user.id).and_call_original - slack_service.execute(data) + slack_integration.execute(data) end end @@ -38,7 +38,7 @@ RSpec.describe Integrations::Slack do it 'does not increase the usage data counter' do expect(Gitlab::UsageDataCounters::HLLRedisCounter).not_to receive(:track_event).with('i_ecosystem_slack_service_pipeline_notification', values: user.id) - slack_service.execute(data) + slack_integration.execute(data) end end @@ -126,7 +126,7 @@ RSpec.describe Integrations::Slack do it 'does not increase the usage data counter' do expect(Gitlab::UsageDataCounters::HLLRedisCounter).not_to receive(:track_event) - slack_service.execute(data) + slack_integration.execute(data) end end end |