update factories + tests
This commit is contained in:
@@ -4,7 +4,7 @@ class NoteSanitizerTest < ActiveSupport::TestCase
|
||||
context "Sanitizing a note" do
|
||||
should "strip unsafe tags" do
|
||||
body = '<p>test</p> <script>alert("owned")</script>'
|
||||
assert_equal('<p>test</p> alert("owned")', NoteSanitizer.sanitize(body))
|
||||
assert_equal('<p>test</p> ', NoteSanitizer.sanitize(body))
|
||||
end
|
||||
|
||||
should "strip unsafe css" do
|
||||
|
||||
Reference in New Issue
Block a user