21 lines
435 B
Ruby
21 lines
435 B
Ruby
require 'helper'
|
|
|
|
class TestSass < Test::Unit::TestCase
|
|
context "converting sass" do
|
|
setup do
|
|
@content = <<-SASS
|
|
$font-stack: Helvetica, sans-serif
|
|
body
|
|
font-family: $font-stack
|
|
font-color: fuschia
|
|
SASS
|
|
@output = <<-CSS
|
|
body {\n font-family: Helvetica, sans-serif;\n font-color: fuschia; }
|
|
CSS
|
|
end
|
|
should "produce CSS" do
|
|
assert_equal @output, Jekyll::Sass.new.convert(@content)
|
|
end
|
|
end
|
|
end
|