Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/abuse_report_spec.rb')
-rw-r--r--spec/models/abuse_report_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/models/abuse_report_spec.rb b/spec/models/abuse_report_spec.rb
index 1fa60a210e2..6500e5fac02 100644
--- a/spec/models/abuse_report_spec.rb
+++ b/spec/models/abuse_report_spec.rb
@@ -18,6 +18,8 @@ RSpec.describe AbuseReport, feature_category: :insider_threat do
it { is_expected.to belong_to(:assignee).class_name('User').inverse_of(:assigned_abuse_reports) }
it { is_expected.to belong_to(:user).inverse_of(:abuse_reports) }
it { is_expected.to have_many(:events).class_name('ResourceEvents::AbuseReportEvent').inverse_of(:abuse_report) }
+ it { is_expected.to have_many(:notes) }
+ it { is_expected.to have_many(:user_mentions).class_name('Abuse::Reports::UserMention') }
it "aliases reporter to author" do
expect(subject.author).to be(subject.reporter)
@@ -263,7 +265,7 @@ RSpec.describe AbuseReport, feature_category: :insider_threat do
let_it_be(:merge_request) { create(:merge_request) }
let_it_be(:user) { create(:user) }
- subject { report.report_type }
+ subject(:report_type) { report.report_type }
context 'when reported from an issue' do
let(:url) { project_issue_url(issue.project, issue) }
@@ -322,7 +324,7 @@ RSpec.describe AbuseReport, feature_category: :insider_threat do
let_it_be(:merge_request) { create(:merge_request, description: 'mr description') }
let_it_be(:user) { create(:user) }
- subject { report.reported_content }
+ subject(:reported_content) { report.reported_content }
context 'when reported from an issue' do
let(:url) { project_issue_url(issue.project, issue) }