There's bug in UnitTest, see attached code. Patch from rails project: http://dev.rubyonrails.com/attachment/ticket/474/dir.rb.cleanup.patch Reproducible: Always Steps to Reproduce:
Created attachment 52009 [details, diff] Patch to fix TestUnit
Fixed in 1.8.2-r1