Sha256: 20632a55c2f2bdffc3b2f8f5bb7a2e89ab1dbc01a21f67de2d611ccfe005627e
Contents?: true
Size: 673 Bytes
Versions: 1
Compression:
Stored size: 673 Bytes
Contents
# -*- encoding: utf-8 -*- require 'webgen/test_helper' require 'webgen/content_processor/scss' class TestScss < MiniTest::Unit::TestCase include Webgen::TestHelper def test_static_call setup_context @website.config['content_processor.sass.options'] = {} @website.ext.sass_load_paths = [] cp = Webgen::ContentProcessor::Scss @context.content = "#main {background-color: #000}" assert_equal("#main {\n background-color: #000; }\n", cp.call(@context).content) @context.content = "#cont\n = 5" assert_error_on_line(Webgen::RenderError, 2) { cp.call(@context) } end def teardown FileUtils.rm_rf(@website.directory) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
webgen-1.0.0.beta3 | test/webgen/content_processor/test_scss.rb |