diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-08-18 21:20:50 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-08-18 21:26:32 +0300 |
commit | 01fc7633d089faad3314bb8bc1a70d27c27aef70 (patch) | |
tree | c937e3003cb501b75580678da2bb4f0782616972 /spec/helpers | |
parent | 83bbca26f48242461606f76f69f3e3bb462666d0 (diff) |
Update Hamlit to 2.6.1
Fixes gitlab-org/gitlab-ce#21025 and gitlab-org/gitlab-ce#21017
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/page_layout_helper_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/helpers/page_layout_helper_spec.rb b/spec/helpers/page_layout_helper_spec.rb index cf632f594c7..dc07657e101 100644 --- a/spec/helpers/page_layout_helper_spec.rb +++ b/spec/helpers/page_layout_helper_spec.rb @@ -97,5 +97,14 @@ describe PageLayoutHelper do expect(tags).to include %q(<meta property="twitter:data1" content="bar" />) end end + + it 'escapes content' do + allow(helper).to receive(:page_card_attributes) + .and_return(foo: %q{foo" http-equiv="refresh}.html_safe) + + tags = helper.page_card_meta_tags + + expect(tags).to include(%q{content="foo" http-equiv="refresh"}) + end end end |