Sha256: cb2807387a12216d86c18fc369f246dbc18989a1e21433ca2c720fe870b54150
Contents?: true
Size: 711 Bytes
Versions: 2
Compression:
Stored size: 711 Bytes
Contents
# -*- encoding: utf-8 -*- require 'test/unit' require 'helper' require 'webgen/tree' require 'webgen/contentprocessor' class TestContentProcessorSass < Test::Unit::TestCase def test_call obj = Webgen::ContentProcessor::Sass.new root = Webgen::Node.new(Webgen::Tree.new.dummy_root, '/', '/') node = Webgen::Node.new(root, 'test', 'test') context = Webgen::Context.new(:content => "#main\n :background-color #000", :chain => [node]) obj.call(context) assert_equal("#main {\n background-color: #000; }\n", context.content) context.content = "#cont \n = unknown" assert_raise(RuntimeError) { obj.call(context) } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gettalong-webgen-0.5.9.20090620 | test/test_contentprocessor_sass.rb |
gettalong-webgen-0.5.9.20090626 | test/test_contentprocessor_sass.rb |