Skip to content
代码片段 群组 项目
未验证 提交 8c0fc0aa 编辑于 作者: Eugie Limpin's avatar Eugie Limpin 提交者: GitLab
浏览文件

Merge branch 'pl-spec-fix-abuse-report' into 'master'

Fix flaky and quarantined abuse_report_details_entity_spec.rb

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/150107



Merged-by: default avatarEugie Limpin <elimpin@gitlab.com>
Approved-by: default avatarEugie Limpin <elimpin@gitlab.com>
Reviewed-by: default avatarPeter Leitzen <pleitzen@gitlab.com>
Co-authored-by: default avatarPeter Leitzen <pleitzen@gitlab.com>
No related branches found
No related tags found
加载中
......@@ -5,8 +5,8 @@
RSpec.describe Admin::AbuseReportDetailsEntity, feature_category: :insider_threat do
include Gitlab::Routing
let_it_be(:user) { create(:user, :with_namespace) }
let_it_be(:report) { create(:abuse_report, user: user) }
let_it_be_with_reload(:user) { create(:user, :with_namespace) }
let_it_be_with_reload(:report) { create(:abuse_report, user: user) }
let(:entity) do
described_class.new(report)
......@@ -53,7 +53,7 @@
let(:phone_number_hash) { entity_hash[:user][:phone_number] }
context 'when the user has no phone number validation attempts' do
it 'does not expose the phone number', quarantine: 'https://gitlab.com/gitlab-org/gitlab/-/issues/441135' do
it 'does not expose the phone number' do
expect(phone_number_hash).to be_nil
end
end
......@@ -92,7 +92,7 @@
context 'when the user has a validated phone number' do
before do
build_stubbed(:phone_number_validation, :validated, user: user)
create(:phone_number_validation, :validated, user: user)
end
it { is_expected.to eq true }
......@@ -100,7 +100,7 @@
context 'when the user has an unvalidated phone number' do
before do
build_stubbed(:phone_number_validation, user: user)
create(:phone_number_validation, user: user)
end
it { is_expected.to eq false }
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册