Remove unneeded tests for the sass converter plugin.
This commit is contained in:
parent
13f19ea21a
commit
aef2134128
|
|
@ -1,47 +1,6 @@
|
||||||
require 'helper'
|
require 'helper'
|
||||||
|
|
||||||
class TestSass < Test::Unit::TestCase
|
class TestSass < Test::Unit::TestCase
|
||||||
def converter(overrides = {})
|
|
||||||
Jekyll::Converters::Sass.new(site_configuration({"sass" => overrides}))
|
|
||||||
end
|
|
||||||
|
|
||||||
def sass_content
|
|
||||||
<<-SASS
|
|
||||||
$font-stack: Helvetica, sans-serif
|
|
||||||
body
|
|
||||||
font-family: $font-stack
|
|
||||||
font-color: fuschia
|
|
||||||
SASS
|
|
||||||
end
|
|
||||||
|
|
||||||
def scss_content
|
|
||||||
<<-SCSS
|
|
||||||
$font-stack: Helvetica, sans-serif;
|
|
||||||
body {
|
|
||||||
font-family: $font-stack;
|
|
||||||
font-color: fuschia;
|
|
||||||
}
|
|
||||||
SCSS
|
|
||||||
end
|
|
||||||
|
|
||||||
def css_output
|
|
||||||
<<-CSS
|
|
||||||
body {\n font-family: Helvetica, sans-serif;\n font-color: fuschia; }
|
|
||||||
CSS
|
|
||||||
end
|
|
||||||
|
|
||||||
context "converting sass" do
|
|
||||||
should "produce CSS" do
|
|
||||||
assert_equal css_output, converter.convert(sass_content)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
context "converting SCSS" do
|
|
||||||
should "produce CSS" do
|
|
||||||
assert_equal css_output, converter.convert(scss_content)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
context "importing partials" do
|
context "importing partials" do
|
||||||
setup do
|
setup do
|
||||||
@site = Jekyll::Site.new(Jekyll.configuration({
|
@site = Jekyll::Site.new(Jekyll.configuration({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue