Skip to content

Commit

Permalink
Added test for Glyph#reset.
Browse files Browse the repository at this point in the history
  • Loading branch information
h3rald committed Apr 26, 2010
1 parent 02f192c commit dad5423
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/lib/glyph_spec.rb
Expand Up @@ -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

0 comments on commit dad5423

Please sign in to comment.