Sha256: a5e674c92330960efa5f6927079c2d0f48a0aff6d806309fd34354676d0560bd

Contents?: true

Size: 498 Bytes

Versions: 1

Compression:

Stored size: 498 Bytes

Contents

require_relative 'helper'
require 'css_inliner'

class CSSInlinerTest < CSSInlinerTestCase
  def setup
    super
  end

  def test_process_without_inline_style
    assert_equal *process(@sample1_dir)
  end

  def test_process_with_inline_style
    assert_equal *process(@sample2_dir)
  end

  def process(basedir)
    source = File.read(File.join(basedir, 'index.html'))
    inlined = File.read(File.join(basedir, 'index.inlined.html'))
    [inlined, CSSInliner.process(source, basedir)]
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
css_inliner-0.1.0 test/test_css_inliner.rb