Sha256: d0a6ff6e8c46a1ebf79a00ac726a26f21ad449be2f55be79bc6957461ca7a430

Contents?: true

Size: 368 Bytes

Versions: 2

Compression:

Stored size: 368 Bytes

Contents

require "bundler/setup"
require "minitest/autorun"

require "./lib/html/pipeline/trix_video"

module TestHelpers

  def assert_equal_html(expected, actual)
    assert_equal equalized_html(expected), equalized_html(actual)
  end

  def equalized_html(html)
    Nokogiri::HTML::DocumentFragment.parse(html).to_hash
  end

end

Minitest::Test.send(:include, TestHelpers)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
html-pipeline-trix-video-0.0.2 test/test_helper.rb
html-pipeline-trix-video-0.0.1 test/test_helper.rb