Welcome to mirror list, hosted at ThFree Co, Russian Federation.

base_slack_notification_spec.rb « integrations « models « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8f7f4e8858d879b53fe7eb2753b032f69ab51d62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Integrations::BaseSlackNotification do
  # This spec should only contain tests that cannot be tested through
  # `base_slack_notification_shared_examples.rb`.

  describe '#metrics_key_prefix (private method)' do
    it 'raises a NotImplementedError error when not defined' do
      subclass = Class.new(described_class)

      expect { subclass.new.send(:metrics_key_prefix) }.to raise_error(NotImplementedError)
    end
  end
end