blob: ab977ca8fcc8d2c4b31b55c673bd33367f3a1766 (
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, feature_category: :integrations 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
|