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:
authorRobert Speicher <rspeicher@gmail.com>2015-05-10 01:09:34 +0300
committerRobert Speicher <rspeicher@gmail.com>2015-05-11 07:01:15 +0300
commitff3a62aad171e4211dd9c5c6e762b1b32f9921ac (patch)
tree93455894f2e879811af64c39b0f6ec83d068998a /spec/services
parentcdb69d728c208ba48ccaede6e0ee086ea224d852 (diff)
Remove legacy special case for emphasized reference notes
Diffstat (limited to 'spec/services')
-rw-r--r--spec/services/system_note_service_spec.rb36
1 files changed, 0 insertions, 36 deletions
diff --git a/spec/services/system_note_service_spec.rb b/spec/services/system_note_service_spec.rb
index cda4e7698f1..194687cbbd6 100644
--- a/spec/services/system_note_service_spec.rb
+++ b/spec/services/system_note_service_spec.rb
@@ -313,41 +313,5 @@ describe SystemNoteService do
to be_falsey
end
end
-
- context 'legacy note with Markdown emphasis' do
- let(:mentioner) { create(:issue, project: project) }
-
- before do
- note = "_mentioned in issue ##{mentioner.iid}_"
- create(:system_note, noteable: noteable, note: note, project: project)
- end
-
- it 'detects if a mentionable with emphasis has been mentioned' do
- expect(described_class.cross_reference_exists?(noteable, mentioner)).
- to be_truthy
- end
-
- context 'when referenced project has underscores' do
- let(:project) { create(:empty_project, path: 'first_project') }
- let(:project2) { create(:empty_project, path: 'second_project') }
-
- let(:issue) { mentioner }
- let(:issue2) { create(:issue, project: project2) }
-
- before do
- described_class.cross_reference(issue, issue2, author)
- end
-
- it 'is truthy when already mentioned' do
- expect(described_class.cross_reference_exists?(issue, issue2)).
- to be_truthy
- end
-
- it 'is falsey when not already mentioned' do
- expect(described_class.cross_reference_exists?(issue2, issue)).
- to be_falsey
- end
- end
- end
end
end