mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FIX: Amazon spec
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
require 'nokogiri/xml/parse_options'
|
||||
RSpec::Matchers.define :match_html do |expected|
|
||||
match do |actual|
|
||||
a = make_canonical_html(expected).to_html.gsub("\r\n", "\n")
|
||||
b = make_canonical_html(actual).to_html.gsub("\r\n", "\n")
|
||||
a == b
|
||||
a = make_canonical_html(expected).to_html.gsub(/\s+/, " ").strip
|
||||
b = make_canonical_html(actual).to_html.gsub(/\s+/, " ").strip
|
||||
a.eql? b
|
||||
end
|
||||
|
||||
failure_message_for_should do |actual|
|
||||
|
Reference in New Issue
Block a user