discourse/spec/components
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
..
export Initial release of Discourse 2013-02-05 14:16:51 -05:00
import Initial release of Discourse 2013-02-05 14:16:51 -05:00
jobs Add score, percent_rank to topics. Adds HotTopic model and consolidated job to calculate 2013-03-28 15:39:54 -04:00
oneboxer don't track links in oneboxes 2013-04-08 02:24:12 +02:00
archetype_spec.rb Initial release of Discourse 2013-02-05 14:16:51 -05:00
category_list_spec.rb Fixes broken spec 2013-04-05 16:27:25 -04:00
content_buffer_spec.rb remove trailing whitespaces ❤️ 2013-02-26 07:31:35 +03:00
cooked_post_processor_spec.rb Convert a lot of :a => b to a: b and bring peace to the world 2013-03-25 05:07:36 +05:30
current_user_spec.rb remove trailing whitespaces ❤️ 2013-02-26 07:31:35 +03:00
diff_engine_spec.rb Use Diffy as DiffEngine implementation 2013-03-15 17:31:51 -07:00
discourse_hub_spec.rb Add version checking that shows on the admin dashboard 2013-02-19 15:20:49 -05:00
discourse_plugin_registry_spec.rb remove trailing whitespaces ❤️ 2013-02-26 07:31:35 +03:00
discourse_spec.rb remove trailing whitespaces ❤️ 2013-02-26 07:31:35 +03:00
distributed_hash_spec.rb remove trailing whitespaces ❤️ 2013-02-26 07:31:35 +03:00
email_sender_spec.rb remove trailing whitespaces ❤️ 2013-02-26 07:31:35 +03:00
email_spec.rb remove trailing whitespaces ❤️ 2013-02-26 07:31:35 +03:00
enum_spec.rb make Enum#valid? specs test the right thing 2013-03-02 10:40:32 +03:00
guardian_spec.rb Admins can't lock themselves out of a site by setting approval. 2013-04-03 12:23:28 -04:00
image_sizer_spec.rb remove trailing whitespaces ❤️ 2013-02-26 07:31:35 +03:00
jobs_spec.rb Dashboard warning when sidekiq is not running 2013-03-22 11:35:51 -04:00
oneboxer_spec.rb Cache oneboxes in Redis now instead of postgres. 2013-03-21 13:11:54 -04:00
pbkdf2_spec.rb PBKDF2 gem is trouble, removing and hand coding for now 2013-03-06 23:12:16 +11:00
pinned_check_spec.rb Cleaned up TopicUserSpec, introduces clearing of pinned topics 2013-03-07 12:19:25 -05:00
post_creator_spec.rb get regular trust level going, self heal inconsistent topic timings 2013-04-05 15:30:28 +11:00
post_destroyer_spec.rb Moved deleting tests to post_destroyer_spec 2013-03-19 14:15:08 -04:00
post_revisor_spec.rb If an admin or moderator edits a visitor's post, the restrictions should be based 2013-04-05 13:59:00 -04:00
pretty_text_spec.rb Create and use new rspec matcher 'match_html' 2013-04-09 22:30:10 -05:00
promotion_spec.rb get regular trust level going, self heal inconsistent topic timings 2013-04-05 15:30:28 +11:00
rate_limiter_spec.rb pull moderator into own column, rename trust levels 2013-03-19 21:06:11 -07:00
score_calculator_spec.rb Add score, percent_rank to topics. Adds HotTopic model and consolidated job to calculate 2013-03-28 15:39:54 -04:00
search_spec.rb fix the specs errors due to a change to the min topic title's length 2013-03-11 14:51:24 +01:00
slug_spec.rb remove trailing whitespaces ❤️ 2013-02-26 07:31:35 +03:00
sql_builder_spec.rb remove trailing whitespaces ❤️ 2013-02-26 07:31:35 +03:00
summarize_spec.rb FIX: OpenGraph tags not fully sanitized 2013-03-22 12:32:56 +01:00
system_message_spec.rb remove trailing whitespaces ❤️ 2013-02-26 07:31:35 +03:00
text_sentinel_spec.rb remove trailing whitespaces ❤️ 2013-02-26 07:31:35 +03:00
topic_query_spec.rb Add score, percent_rank to topics. Adds HotTopic model and consolidated job to calculate 2013-03-28 15:39:54 -04:00
topic_view_spec.rb added best=N option to get N best comment on a post 2013-03-27 22:53:11 -07:00
unread_spec.rb Cleaned up TopicUserSpec, introduces clearing of pinned topics 2013-03-07 12:19:25 -05:00