Clean out Sass tests that we don't need anymore.

Ref: #2098
This commit is contained in:
Parker Moore 2014-02-28 21:38:07 -05:00
parent f3dfe1dd09
commit e2308eb7f4
1 changed files with 0 additions and 56 deletions

View File

@ -37,62 +37,6 @@ body {\n font-family: Helvetica, sans-serif;\n font-color: fuschia; }
CSS
end
context "matching file extensions" do
should "match .scss files" do
assert converter.matches(".scss")
end
should "match .sass files" do
assert converter.matches(".sass")
end
end
context "determining the output file extension" do
should "always outputs the .css file extension" do
assert_equal ".css", converter.output_ext(".always-css")
end
end
context "when building configurations" do
should "not allow caching in safe mode" do
verter = converter
verter.instance_variable_get(:@config)["safe"] = true
assert_equal false, verter.sass_configs[:cache]
end
should "allow caching in unsafe mode" do
assert_equal true, converter.sass_configs[:cache]
end
should "set the load paths to the _sass dir relative to site source" do
assert_equal [source_dir("_sass")], converter.sass_configs[:load_paths]
end
should "allow the user to specify a different sass dir" do
assert_equal [source_dir("_scss")], converter({"sass_dir" => "_scss"}).sass_configs[:load_paths]
end
should "set syntax :scss when SCSS content" do
assert_equal :scss, converter.sass_configs(scss_content)[:syntax]
end
should "set syntax :sass when Sass content" do
assert_equal :sass, converter.sass_configs(sass_content)[:syntax]
end
should "default to :sass syntax when content is empty" do
assert_equal :sass, converter.sass_configs[:syntax]
end
should "not allow sass_dirs outside of site source" do
assert_equal source_dir("etc/passwd"), converter({"sass_dir" => "/etc/passwd"}).sass_dir_relative_to_site_source
end
should "override user-set syntax based on content" do
assert_equal :sass, converter({"syntax" => :scss}).sass_configs(sass_content)[:syntax]
end
end
context "converting sass" do
should "produce CSS" do
assert_equal css_output, converter.convert(sass_content)