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/issue_spec.rb')
-rw-r--r--spec/models/issue_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/models/issue_spec.rb b/spec/models/issue_spec.rb
index 969d897e551..965da59a0ed 100644
--- a/spec/models/issue_spec.rb
+++ b/spec/models/issue_spec.rb
@@ -1258,4 +1258,12 @@ RSpec.describe Issue do
expect { issue.issue_type_supports?(:unkown_feature) }.to raise_error(ArgumentError)
end
end
+
+ describe '#email_participants_downcase' do
+ it 'returns a list of emails with all uppercase letters replaced with their lowercase counterparts' do
+ participant = create(:issue_email_participant, email: 'SomEoNe@ExamPLe.com')
+
+ expect(participant.issue.email_participants_downcase).to match([participant.email.downcase])
+ end
+ end
end