Files
gitlab-foss/spec/models/user_mentions/merge_request_user_mention_spec.rb
2025-01-22 18:36:40 +00:00

16 lines
429 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe MergeRequestUserMention, feature_category: :code_review_workflow do
describe 'associations' do
it { is_expected.to belong_to(:merge_request) }
it { is_expected.to belong_to(:note) }
end
it_behaves_like 'has user mentions' do
let_it_be(:mentionable_key) { 'merge_request_id' }
let_it_be(:mentionable) { create(:merge_request) }
end
end