test/test_helper.rb in haml-rails-0.9.0 vs test/test_helper.rb in haml-rails-1.0.0
- old
+ new
@@ -68,6 +68,12 @@
end
end
end
alias :require_generator :require_generators
-require_generators generator_list
\ No newline at end of file
+require_generators generator_list
+
+# Remove tmp directory when test suite is completed
+MiniTest::Unit.after_tests do
+ tmp_dir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'tmp'))
+ FileUtils.rm_r(tmp_dir)
+end