Sha256: 20f0359a5ddf407c316273605fb62fe2f62afa8233f1f7f015896154d907eddb
Contents?: true
Size: 514 Bytes
Versions: 1
Compression:
Stored size: 514 Bytes
Contents
require 'bundler/setup' require 'html/pipeline' require 'minitest/autorun' require 'active_support/core_ext/string' require 'active_support/core_ext/object/try' 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
html-pipeline-1.9.0 | test/test_helper.rb |