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:
authorDouwe Maan <douwe@selenight.nl>2018-06-18 18:47:20 +0300
committerDouwe Maan <douwe@selenight.nl>2018-06-18 18:47:29 +0300
commit96f8ad0683619bb852931f4005f0b83c8337e8e6 (patch)
treef4b198926abd63f92bbc16898d726d19d359ecae /spec/lib/banzai/filter/label_reference_filter_spec.rb
parent99fdbe4c230205510e1d7061e68bb1a003913d4b (diff)
Properly detect label reference if followed by period or question mark
Diffstat (limited to 'spec/lib/banzai/filter/label_reference_filter_spec.rb')
-rw-r--r--spec/lib/banzai/filter/label_reference_filter_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/banzai/filter/label_reference_filter_spec.rb b/spec/lib/banzai/filter/label_reference_filter_spec.rb
index b30f3661e70..f34d3dc935b 100644
--- a/spec/lib/banzai/filter/label_reference_filter_spec.rb
+++ b/spec/lib/banzai/filter/label_reference_filter_spec.rb
@@ -149,8 +149,8 @@ describe Banzai::Filter::LabelReferenceFilter do
end
it 'links with adjacent text' do
- doc = reference_filter("Label (#{reference}).")
- expect(doc.to_html).to match(%r(\(<a.+><span.+>\?g\.fm&amp;</span></a>\)\.))
+ doc = reference_filter("Label #{reference}.")
+ expect(doc.to_html).to match(%r(<a.+><span.+>\?g\.fm&amp;</span></a>\.))
end
it 'ignores invalid label names' do