Fix file leak in lock tests

This commit is contained in:
Jack Nagel 2014-06-23 21:50:57 -05:00
parent f25f6fbb39
commit 35b9a00706

View File

@ -9,6 +9,7 @@ class FormulaLockTests < Homebrew::TestCase
def teardown
@lock.unlock
FormulaLock::LOCKDIR.children.each(&:unlink)
end
def test_locking_file_with_existing_lock_raises_error