diff --git a/test/markup_test.rb b/test/markup_test.rb index 4c8fdf45..3cc1b998 100644 --- a/test/markup_test.rb +++ b/test/markup_test.rb @@ -9,11 +9,10 @@ require 'nokogiri/diff' def normalize_html(text) - text.strip! - text.gsub!(/\s\s+/,' ') - text.gsub!(/\p{Pi}|\p{Pf}|"/u,'"') - text.gsub!("\u2026",'...') - text + text.strip + .gsub(/\s\s+/,' ') + .gsub(/\p{Pi}|\p{Pf}|"/u,'"') + .gsub("\u2026",'...') end def assert_html_equal(expected, actual, msg = nil)