Sha256: 6a91afd4e0fa973e4169f9aa885853125516d6ae9cc1e09eeee71bc4c9b95365

Contents?: true

Size: 611 Bytes

Versions: 2

Compression:

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

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
webgen-1.0.0.beta2 test/webgen/content_processor/test_scss.rb
webgen-1.0.0.beta1 test/webgen/content_processor/test_scss.rb