FEATURE: out-of-the-box dark/light user selectable themes

This commit is contained in:
Sam
2017-05-03 11:31:16 -04:00
parent 81190f5d66
commit 342ef5f81a
13 changed files with 68 additions and 35 deletions

View File

@ -4,6 +4,8 @@ describe StylesheetCache do
describe "add" do
it "correctly cycles once MAX_TO_KEEP is hit" do
StylesheetCache.destroy_all
(StylesheetCache::MAX_TO_KEEP + 1).times do |i|
StylesheetCache.add("a", "d" + i.to_s, "c" + i.to_s, "map")
end
@ -13,6 +15,8 @@ describe StylesheetCache do
end
it "does nothing if digest is set and already exists" do
StylesheetCache.destroy_all
StylesheetCache.add("a", "b", "c", "map")
StylesheetCache.add("a", "b", "cc", "map")