Skip to content

Commit

Permalink
Clean out Sass tests that we don't need anymore.
Browse files Browse the repository at this point in the history
Ref: #2098
  • Loading branch information
parkr committed Mar 1, 2014
1 parent f3dfe1d commit e2308eb
Showing 1 changed file with 0 additions and 56 deletions.
56 changes: 0 additions & 56 deletions test/test_sass.rb
Expand Up @@ -37,62 +37,6 @@ def css_output
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)
Expand Down

0 comments on commit e2308eb

Please sign in to comment.