discourse/spec
Michael Scott Shappe 2fb673dd72 Create and use new rspec matcher 'match_html'
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
2013-04-09 22:30:10 -05:00
..
components Create and use new rspec matcher 'match_html' 2013-04-09 22:30:10 -05:00
controllers added some tests for uploads 2013-04-07 17:52:46 +02:00
fabricators Can change TOS content via site content editor 2013-04-05 15:21:55 -04:00
fixtures Merge pull request #628 from ZogStriP/add-uploads-controller-specs 2013-04-03 08:06:49 -07:00
integrity prevent double work in the i18n integrity specs 2013-03-23 15:49:31 +01:00
javascripts Missed a jshint thing in the spec 2013-04-09 18:04:25 -04:00
mailers Swap out "@" for "via" in email From field 2013-02-27 19:03:57 -05:00
models collapse some db tests 2013-04-10 12:50:00 +10:00
phantom_js formatted some tests 2013-02-27 03:18:23 +01:00
requests remove trailing whitespaces ❤️ 2013-02-26 07:31:35 +03:00
support Create and use new rspec matcher 'match_html' 2013-04-09 22:30:10 -05:00
views/omniauth_callbacks Convert a lot of :a => b to a: b and bring peace to the world 2013-03-25 05:07:36 +05:30
spec_helper.rb SO AWESOME!!!!!!!!!!!!!!!!!!!!!!!! 2013-03-19 21:06:11 -07:00