Use existing method

This commit is contained in:
Jorge Manrubia
2025-05-29 13:07:20 +02:00
parent 1e18fa87a9
commit 6d88975d46
+1 -1
View File
@@ -13,7 +13,7 @@ module ActionTextTestHelper
Nokogiri::HTML.fragment(html).tap do |fragment|
fragment.traverse do |node|
if node.text?
node.content = node.text.strip.gsub(/\s+/, " ")
node.content = node.text.squish
end
end
end.to_html.strip