14028: Confirm that safe tags (like <b></b>) don't get cleaned by sanitize()
authorLucas Di Pentima <ldipentima@veritasgenetics.com>
Tue, 14 Aug 2018 18:01:28 +0000 (15:01 -0300)
committerLucas Di Pentima <ldipentima@veritasgenetics.com>
Tue, 14 Aug 2018 18:01:28 +0000 (15:01 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima@veritasgenetics.com>

apps/workbench/test/controllers/projects_controller_test.rb

index c35d83ffc2bc1953ade99cc0772d7b5c92d93b27..3522745fe4cc0bca3da001e12c805fe516640482 100644 (file)
@@ -335,10 +335,10 @@ class ProjectsControllerTest < ActionController::TestCase
     project = api_fixture('groups')['aproject']
     use_token :active
     found = Group.find(project['uuid'])
-    found.description = 'Textile description with link to home page <a href="/">take me home</a>.'
+    found.description = '<b>Textile</b> description with link to home page <a href="/">take me home</a>.'
     found.save!
     get(:show, {id: project['uuid']}, session_for(:active))
-    assert_includes @response.body, 'Textile description with link to home page <a href="/">take me home</a>.'
+    assert_includes @response.body, '<b>Textile</b> description with link to home page <a href="/">take me home</a>.'
   end
 
   test "find a project and edit description to unsafe html description" do