diff options
author | Felipe Artur <felipefac@gmail.com> | 2016-05-05 00:21:57 +0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2016-05-05 22:37:49 +0300 |
commit | d028863eda8b97f6e4db129ef57f0d3a2130c9b3 (patch) | |
tree | 010e2d279ef301b4fa301815c9878983ffb240cf /spec/lib | |
parent | fad7b392dc633fb689e657af8b7fad346ede416e (diff) |
Sanitize milestones and label titles
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/banzai/filter/milestone_reference_filter_spec.rb | 2 |
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 |