From 6e623b8568168359ce3419b73002bbcae1b57051 Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Mon, 22 Apr 2019 17:29:32 -0400 Subject: [PATCH] Fix test for style attribute scrubbing --- test/html5/test_scrub.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/html5/test_scrub.rb b/test/html5/test_scrub.rb index 50bead9f..84e17b69 100644 --- a/test/html5/test_scrub.rb +++ b/test/html5/test_scrub.rb @@ -4,7 +4,7 @@ class UnitHTML5Scrub < Loofah::TestCase include Loofah def test_scrub_css - assert Loofah::HTML5::Scrub.scrub_css("background: #ABC012"), "background: #ABC012" - assert Loofah::HTML5::Scrub.scrub_css("background: #abc012"), "background: #abc012" + assert_equal Loofah::HTML5::Scrub.scrub_css("background: #ABC012"), "background:#ABC012;" + assert_equal Loofah::HTML5::Scrub.scrub_css("background: #abc012"), "background:#abc012;" end end