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