diff --git a/spec/lib/glyph_spec.rb b/spec/lib/glyph_spec.rb index 9fb3e14..c020387 100644 --- a/spec/lib/glyph_spec.rb +++ b/spec/lib/glyph_spec.rb @@ -90,4 +90,12 @@ (Glyph::PROJECT/'article.html').exist?.should == true end + it "should provide a reset method to remove config overrides, reenable tasks, clear macros and snippets." do + Glyph['test_setting'] = true + Glyph.reset + Glyph::SNIPPETS.length.should == 0 + Glyph::MACROS.length.should == 0 + Glyph['test_setting'].should == nil + end + end