summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-08-06 17:15:37 +0200
committerDouwe Maan <douwe@gitlab.com>2015-08-06 17:15:37 +0200
commit674e1c74586ac5375f7f1a243739c1f6f368cd48 (patch)
treee7c514080b161d8b48546a7fe66ddf1749a483b7
parente2b4f13b9b61795fa71cd157a611e132fc9094da (diff)
downloadgitlab-ce-674e1c74586ac5375f7f1a243739c1f6f368cd48.tar.gz
Fix spec
-rw-r--r--spec/features/projects_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/projects_spec.rb b/spec/features/projects_spec.rb
index c8d44efdc8b..a362c54b9ad 100644
--- a/spec/features/projects_spec.rb
+++ b/spec/features/projects_spec.rb
@@ -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