test/test_helper.rb in asset_hat-0.1.5 vs test/test_helper.rb in asset_hat-0.2.0

- old
+ new

@@ -20,12 +20,16 @@ def env ; ActiveSupport::StringInquirer.new('test') ; end end end end +@original_config = AssetHat.config + # Use this when FlexMock refuses to teardown automatically. (Yes, + # this is ugly.) + class ActionView::TestCase teardown :clear_html_cache def clear_html_cache - AssetHat.html_cache = {} + AssetHat.clear_html_cache end end