summaryrefslogtreecommitdiff
path: root/spec/lib/banzai
diff options
context:
space:
mode:
authorFelipe Artur <felipefac@gmail.com>2016-05-04 18:21:57 -0300
committerFelipe Artur <felipefac@gmail.com>2016-05-05 16:37:49 -0300
commitd028863eda8b97f6e4db129ef57f0d3a2130c9b3 (patch)
tree010e2d279ef301b4fa301815c9878983ffb240cf /spec/lib/banzai
parentfad7b392dc633fb689e657af8b7fad346ede416e (diff)
downloadgitlab-ce-d028863eda8b97f6e4db129ef57f0d3a2130c9b3.tar.gz
Sanitize milestones and label titlesissue_15394
Diffstat (limited to 'spec/lib/banzai')
-rw-r--r--spec/lib/banzai/filter/milestone_reference_filter_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/banzai/filter/milestone_reference_filter_spec.rb b/spec/lib/banzai/filter/milestone_reference_filter_spec.rb
index ebf3d7489b5..5beb61dac5c 100644
--- a/spec/lib/banzai/filter/milestone_reference_filter_spec.rb
+++ b/spec/lib/banzai/filter/milestone_reference_filter_spec.rb
@@ -43,7 +43,7 @@ describe Banzai::Filter::MilestoneReferenceFilter, lib: true do
milestone.update_attribute(:title, %{"></a>whatever<a title="})
doc = reference_filter("milestone #{reference}")
- expect(doc.text).to eq "milestone #{milestone.title}"
+ expect(doc.text).to eq "milestone \">whatever"
end
it 'includes default classes' do