We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd69771 commit b1caec3Copy full SHA for b1caec3
spec/dummy/spec/support/script_tag_utils.rb
@@ -6,8 +6,8 @@
6
opts = {}
7
match do |actual|
8
Nokogiri::HTML.fragment(actual).css("script").map do |script|
9
- EquivalentXml.equivalent?(Nokogiri::HTML.fragment(script.to_s),
10
- Nokogiri::HTML.fragment(expected),
+ EquivalentXml.equivalent?(Nokogiri::HTML.fragment(script.to_s.delete(" \t\r\n")),
+ Nokogiri::HTML.fragment(expected.delete(" \t\r\n")),
11
opts)
12
end.include?(true)
13
end
0 commit comments