This commit is contained in:
Douwe Maan 2015-08-06 17:15:37 +02:00
parent e2b4f13b9b
commit 674e1c7458
1 changed files with 2 additions and 2 deletions

View File

@ -22,9 +22,9 @@ feature 'Project', feature: true do
end
it 'sanitizes unwanted tags' do
project.update_attribute(:description, '# Project Description')
project.update_attribute(:description, "```\ncode\n```")
visit path
expect(page).not_to have_css('.project-home-desc h1')
expect(page).not_to have_css('.project-home-desc code')
end
it 'permits `rel` attribute on links' do