diff options
| author | Jack Nagel | 2014-10-29 23:49:52 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-10-29 23:49:57 -0500 |
| commit | 503d7811508af80d20d767f0206250bf9f3c1a47 (patch) | |
| tree | d6487d200c5dacee23aee8e2229bdfd8f5c8ea85 /Library/Homebrew/test | |
| parent | 1a487fa2b3e122a15b961099e3494ce5821286c5 (diff) | |
| download | brew-503d7811508af80d20d767f0206250bf9f3c1a47.tar.bz2 | |
Allow tests to reset bottle hooks on teardown
This avoids polluting other tests that might invoke the installer, thus
executing any registered hooks.
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/test_bottle_hooks.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_bottle_hooks.rb b/Library/Homebrew/test/test_bottle_hooks.rb index 8c66bce53..92dca6dff 100644 --- a/Library/Homebrew/test/test_bottle_hooks.rb +++ b/Library/Homebrew/test/test_bottle_hooks.rb @@ -37,4 +37,8 @@ class BottleHookTests < Homebrew::TestCase end @fi.pour end + + def teardown + Homebrew::Hooks::Bottles.reset_hooks + end end |
