Sha256: ccef1770a393c6fff4bbbf414c3c5b008e5bdf168d7f0b73eec2cf88967ec9b5

Contents?: true

Size: 630 Bytes

Versions: 14

Compression:

Stored size: 630 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

14 entries across 14 versions & 1 rubygems

Version Path
nanoc-3.7.3 test/filters/test_rainpress.rb
nanoc-3.7.2 test/filters/test_rainpress.rb
nanoc-3.7.1 test/filters/test_rainpress.rb
nanoc-3.7.0 test/filters/test_rainpress.rb
nanoc-3.6.11 test/filters/test_rainpress.rb
nanoc-3.6.10 test/filters/test_rainpress.rb
nanoc-3.6.9 test/filters/test_rainpress.rb
nanoc-3.6.8 test/filters/test_rainpress.rb
nanoc-3.6.7 test/filters/test_rainpress.rb
nanoc-3.6.6 test/filters/test_rainpress.rb
nanoc-3.6.5 test/filters/test_rainpress.rb
nanoc-3.6.4 test/filters/test_rainpress.rb
nanoc-3.6.3 test/filters/test_rainpress.rb
nanoc-3.6.2 test/filters/test_rainpress.rb