debian-mirror-gitlab/spec/models/alert_management/alert_user_mention_spec.rb

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

17 lines
405 B
Ruby
Raw Normal View History

2020-06-23 00:09:42 +05:30
# frozen_string_literal: true
require 'spec_helper'
2020-07-28 23:09:34 +05:30
RSpec.describe AlertManagement::AlertUserMention do
2020-06-23 00:09:42 +05:30
describe 'associations' do
2023-05-27 22:25:52 +05:30
it do
is_expected.to belong_to(:alert).class_name('::AlertManagement::Alert')
.with_foreign_key(:alert_management_alert_id).inverse_of(:user_mentions)
end
2020-06-23 00:09:42 +05:30
it { is_expected.to belong_to(:note) }
end
it_behaves_like 'has user mentions'
end