mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 20:27:28 +08:00
2fb673dd72
This introduces match_html, which converts actual and expected HTML strings into "canonical" HTML using Nokogiri with NOBLANKS and COMPACT, and then does a simple equality comparison. This eliminates whitespace differences introduced by library changes (e.g. the libxml2 2.9.0 change). pretty_text_spec.rb has been changed to use match_html where appropriate. and all tests pass under libxml2 2.7.6, 2.8.0 or 2.9.0 |
||
---|---|---|
.. | ||
components | ||
controllers | ||
fabricators | ||
fixtures | ||
integrity | ||
javascripts | ||
mailers | ||
models | ||
phantom_js | ||
requests | ||
support | ||
views/omniauth_callbacks | ||
spec_helper.rb |