From dad5423476094ea41a9f6c4ddb61a8c76c3c1e92 Mon Sep 17 00:00:00 2001 From: h3rald Date: Mon, 26 Apr 2010 15:15:14 +0200 Subject: [PATCH] Added test for Glyph#reset. --- spec/lib/glyph_spec.rb | 8 ++++++++ 1 file changed, 8 insertions(+) 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