From 2c510ee00a9fb4141a428d9a21dbd561171b3409 Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Sun, 22 Mar 2020 16:59:29 +0100 Subject: Fix glitch-soc marking every link in toots as a tag Fixes #1281 --- spec/lib/sanitize_config_spec.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'spec/lib') diff --git a/spec/lib/sanitize_config_spec.rb b/spec/lib/sanitize_config_spec.rb index 50558a0d8..2d82c00ea 100644 --- a/spec/lib/sanitize_config_spec.rb +++ b/spec/lib/sanitize_config_spec.rb @@ -28,7 +28,11 @@ describe Sanitize::Config do end it 'keeps a with href' do - expect(Sanitize.fragment('Test', subject)).to eq 'Test' + expect(Sanitize.fragment('Test', subject)).to eq 'Test' + end + + it 'keeps a with href and rel tag' do + expect(Sanitize.fragment('', subject)).to eq 'Test' end end end -- cgit