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

Version Path
html-pipeline-2.4.1 test/test_helper.rb
html-pipeline-2.4.0 test/test_helper.rb
html-pipeline-2.3.0 test/test_helper.rb
html-pipeline-2.2.4 test/test_helper.rb
html-pipeline-2.2.3 test/test_helper.rb
html-pipeline-2.2.2 test/test_helper.rb
html-pipeline-2.2.1 test/test_helper.rb
html-pipeline-2.2.0 test/test_helper.rb
html-pipeline-2.1.0 test/test_helper.rb
html-pipeline-2.0 test/test_helper.rb
html-pipeline-gitlab-0.2.0 test/test_helper.rb
html-pipeline-gitlab-0.1.7 test/test_helper.rb
html-pipeline-gitlab-0.1.6 test/test_helper.rb
html-pipeline-gitlab-0.1.5 test/test_helper.rb
html-pipeline-gitlab-0.1.4 test/test_helper.rb
html-pipeline-gitlab-0.1.3 test/test_helper.rb
html-pipeline-gitlab-0.1.2 test/test_helper.rb
html-pipeline-gitlab-0.1.1 test/test_helper.rb
html-pipeline-gitlab-0.1.0 test/test_helper.rb
html-pipeline-gitlab-0.0.6 test/test_helper.rb