diff options
author | Jacopo <beschi.jacopo@gmail.com> | 2017-08-30 17:16:08 +0200 |
---|---|---|
committer | Jacopo <beschi.jacopo@gmail.com> | 2017-08-30 21:59:09 +0200 |
commit | 378ee1dac262a490e48334a3dd3300be5f1c7299 (patch) | |
tree | 95a80d0dd00de7aa8a781a53f96dcec625e5dd44 /spec/models/wiki_page_spec.rb | |
parent | f35d7d7f6ea04a38da822db902ad24108dfe94a2 (diff) | |
download | gitlab-ce-378ee1dac262a490e48334a3dd3300be5f1c7299.tar.gz |
Unescape HTML characters in Wiki title
The special characters of a wiki title are now escaped correctly.
Diffstat (limited to 'spec/models/wiki_page_spec.rb')
-rw-r--r-- | spec/models/wiki_page_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/models/wiki_page_spec.rb b/spec/models/wiki_page_spec.rb index 40a222be24d..9ef8d117123 100644 --- a/spec/models/wiki_page_spec.rb +++ b/spec/models/wiki_page_spec.rb @@ -281,6 +281,12 @@ describe WikiPage do @page.title = "Import-existing-repositories-into-GitLab" expect(@page.title).to eq("Import existing repositories into GitLab") end + + it 'unescapes html' do + @page.title = 'foo & bar' + + expect(@page.title).to eq('foo & bar') + end end describe '#directory' do |