Sha256: b5749750278c7915d7578b4f76147b36a287e55c4489a0acc26d8d6a3005526e
Contents?: true
Size: 469 Bytes
Versions: 27
Compression:
Stored size: 469 Bytes
Contents
require 'bundler/setup' require 'html/pipeline' require 'minitest/autorun' require 'active_support/core_ext/string' module TestHelpers # Asserts that two html fragments are equivalent. Attribute order # will be ignored. def assert_equal_html(expected, actual) assert_equal Nokogiri::HTML::DocumentFragment.parse(expected).to_hash, Nokogiri::HTML::DocumentFragment.parse(actual).to_hash end end Minitest::Test.send(:include, TestHelpers)
Version data entries
27 entries across 27 versions & 2 rubygems