Sha256: 58eb0aca6f0f48bc53a54195604cdb1df2c68bb7bb815ee8462389521696f923

Contents?: true

Size: 625 Bytes

Versions: 6

Compression:

Stored size: 625 Bytes

Contents

# encoding: utf-8

class Nanoc::Filters::RainpressTest < Nanoc::TestCase
  def test_filter
    if_have 'rainpress' do
      # Create filter
      filter = ::Nanoc::Filters::Rainpress.new

      # Run filter
      result = filter.setup_and_run('body { color: black; }')
      assert_equal('body{color:#000}', result)
    end
  end

  def test_filter_with_options
    if_have 'rainpress' do
      # Create filter
      filter = ::Nanoc::Filters::Rainpress.new

      # Run filter
      result = filter.setup_and_run('body { color: #aabbcc; }', colors: false)
      assert_equal('body{color:#aabbcc}', result)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
nanoc-4.0.0b2 test/filters/test_rainpress.rb
nanoc-4.0.0b1 test/filters/test_rainpress.rb
nanoc-4.0.0a2 test/filters/test_rainpress.rb
nanoc-4.0.0a1 test/filters/test_rainpress.rb
nanoc-3.8.0 test/filters/test_rainpress.rb
nanoc-3.7.5 test/filters/test_rainpress.rb