diff options
| author | Alyssa Ross | 2017-01-21 11:21:30 +0000 |
|---|---|---|
| committer | Alyssa Ross | 2017-01-21 11:34:52 +0000 |
| commit | 70a381a00ff1e354e059aa07d55ebab90c5f874a (patch) | |
| tree | 32275fe167b961605ddeb2cf71fe1c1437d91c2a /Library/Homebrew/test/patching_test.rb | |
| parent | d7c463ad2c036bd9917398069217f6cad0f5b326 (diff) | |
| download | brew-70a381a00ff1e354e059aa07d55ebab90c5f874a.tar.bz2 | |
tests: enforce `super` in lifecycle hooks
This will allow us to have global setup and teardown for tests.
For example, we can automatically clear caches after each test, to avoid
annoying intermittent failures like #1879 and #1886.
Diffstat (limited to 'Library/Homebrew/test/patching_test.rb')
| -rw-r--r-- | Library/Homebrew/test/patching_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/test/patching_test.rb b/Library/Homebrew/test/patching_test.rb index ac14c8e1e..eadab15dc 100644 --- a/Library/Homebrew/test/patching_test.rb +++ b/Library/Homebrew/test/patching_test.rb @@ -23,6 +23,7 @@ class PatchingTests < Homebrew::TestCase def teardown @_f.clear_cache @_f.patchlist.each { |p| p.clear_cache if p.external? } + super end def assert_patched(formula) |
