]> cat aescling's git repositories - mastodon.git/commitdiff
Fix tests
authorThibaut Girka <thib@sitedethib.com>
Sun, 9 Feb 2020 11:32:33 +0000 (12:32 +0100)
committerThibaut Girka <thib@sitedethib.com>
Sun, 9 Feb 2020 11:32:33 +0000 (12:32 +0100)
Well, kinda, it's actually a bug from glitch-soc, but we will have to address it separately.

spec/lib/sanitize_config_spec.rb

index 0a812e8726951029c4618f7830d8704f3bf056c5..50558a0d81605416b24a617effb7edd47b2dd6b0 100644 (file)
@@ -28,7 +28,7 @@ describe Sanitize::Config do
     end
 
     it 'keeps a with href' do
-      expect(Sanitize.fragment('<a href="http://example.com">Test</a>', subject)).to eq '<a href="http://example.com" rel="nofollow noopener noreferrer" target="_blank">Test</a>'
+      expect(Sanitize.fragment('<a href="http://example.com">Test</a>', subject)).to eq '<a href="http://example.com" rel="nofollow noopener tag noreferrer" target="_blank">Test</a>'
     end
   end
 end