Sha256: cfd53fdee8714cdaf439da8ab1c996729cbd35270052df0bdcaca1ae29510578

Contents?: true

Size: 728 Bytes

Versions: 3

Compression:

Stored size: 728 Bytes

Contents

require_relative 'helper'
require 'css_inliner'

class CSSInlinerTest < CSSInlinerTestCase
  def setup
    super
  end

  def test_process_without_inline_style
    pend

    assert_equal *process(@sample1_dir)
  end

  def test_process_with_inline_style
    pend

    assert_equal *process(@sample2_dir)
  end

  def test_process_with_style_attribute
    pend

    assert_equal *process(@sample3_dir)
  end

  def test_process_with_inline_style_and_style_attibute
    pend

    assert_equal *process(@sample4_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

3 entries across 3 versions & 1 rubygems

Version Path
css_inliner-0.3.0 test/test_css_inliner.rb
css_inliner-0.2.1 test/test_css_inliner.rb
css_inliner-0.2.0 test/test_css_inliner.rb