debian-mirror-gitlab/spec/models/alert_management/alert_user_mention_spec.rb
2023-05-27 22:25:52 +05:30

16 lines
405 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe AlertManagement::AlertUserMention do
describe 'associations' do
it do
is_expected.to belong_to(:alert).class_name('::AlertManagement::Alert')
.with_foreign_key(:alert_management_alert_id).inverse_of(:user_mentions)
end
it { is_expected.to belong_to(:note) }
end
it_behaves_like 'has user mentions'
end