mirror of
https://github.com/jekyll/jekyll.git
synced 2026-04-28 03:01:03 -04:00
Allow caching in unsafe mode, but disable in safe mode.
This commit is contained in:
@@ -54,8 +54,14 @@ CSS
|
||||
end
|
||||
|
||||
context "when building configurations" do
|
||||
should "not allow caching" do
|
||||
assert_equal false, converter.sass_configs[:cache]
|
||||
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
|
||||
@@ -85,10 +91,6 @@ CSS
|
||||
should "override user-set syntax based on content" do
|
||||
assert_equal :sass, converter({"syntax" => :scss}).sass_configs(sass_content)[:syntax]
|
||||
end
|
||||
|
||||
should "override user-set cache setting" do
|
||||
assert_equal false, converter("cache" => true).sass_configs[:cache]
|
||||
end
|
||||
end
|
||||
|
||||
context "converting sass" do
|
||||
|
||||
Reference in New Issue
Block a user