debian-mirror-gitlab/spec/models/integrations/base_slack_notification_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
501 B
Ruby
Raw Normal View History

2023-03-04 22:38:38 +05:30
# 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