Sha256: 9bf14a602283495f6a759bf3cbb2b0eeabd4a14525c06dedbb78c1426b63f677

Contents?: true

Size: 606 Bytes

Versions: 40

Compression:

Stored size: 606 Bytes

Contents

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

40 entries across 40 versions & 1 rubygems

Version Path
nanoc-4.1.6 test/filters/test_rainpress.rb
nanoc-4.2.0b1 test/filters/test_rainpress.rb
nanoc-4.1.5 test/filters/test_rainpress.rb
nanoc-4.1.4 test/filters/test_rainpress.rb
nanoc-4.1.3 test/filters/test_rainpress.rb
nanoc-4.1.2 test/filters/test_rainpress.rb
nanoc-4.1.1 test/filters/test_rainpress.rb
nanoc-4.1.0 test/filters/test_rainpress.rb
nanoc-4.1.0rc2 test/filters/test_rainpress.rb
nanoc-4.1.0rc1 test/filters/test_rainpress.rb
nanoc-4.1.0b1 test/filters/test_rainpress.rb
nanoc-4.1.0a1 test/filters/test_rainpress.rb
nanoc-4.0.2 test/filters/test_rainpress.rb
nanoc-4.0.1 test/filters/test_rainpress.rb
nanoc-4.0.0 test/filters/test_rainpress.rb
nanoc-4.0.0rc3 test/filters/test_rainpress.rb
nanoc-4.0.0rc2 test/filters/test_rainpress.rb
nanoc-4.0.0rc1 test/filters/test_rainpress.rb
nanoc-4.0.0b4 test/filters/test_rainpress.rb
nanoc-4.0.0b3 test/filters/test_rainpress.rb