Commit 182d5a2e authored by Stan Hu's avatar Stan Hu

Merge branch 'lucyfox-master-patch-97185' into 'master'

Fix typo: exists

See merge request gitlab-org/gitlab!33006
parents 59122560 8be9b198
...@@ -204,7 +204,7 @@ describe Gitlab::ReferenceExtractor do ...@@ -204,7 +204,7 @@ describe Gitlab::ReferenceExtractor do
issue] issue]
end end
it 'returns only Jira issues if the internal one does not exists' do it 'returns only Jira issues if the internal one does not exist' do
subject.analyze("JIRA-123 and FOOBAR-4567 and ##{non_existing_record_iid}") subject.analyze("JIRA-123 and FOOBAR-4567 and ##{non_existing_record_iid}")
expect(subject.issues).to eq [ExternalIssue.new('JIRA-123', project), expect(subject.issues).to eq [ExternalIssue.new('JIRA-123', project),
ExternalIssue.new('FOOBAR-4567', project)] ExternalIssue.new('FOOBAR-4567', project)]
...@@ -236,7 +236,7 @@ describe Gitlab::ReferenceExtractor do ...@@ -236,7 +236,7 @@ describe Gitlab::ReferenceExtractor do
expect(subject.issues).to eq([issue]) expect(subject.issues).to eq([issue])
end end
it 'does not return any issue if the internal one does not exists' do it 'does not return any issue if the internal one does not exist' do
subject.analyze("JIRA-123 and FOOBAR-4567 and #999") subject.analyze("JIRA-123 and FOOBAR-4567 and #999")
expect(subject.issues).to be_empty expect(subject.issues).to be_empty
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment