aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils/github.rb
diff options
context:
space:
mode:
authorMike McQuaid2016-07-08 20:20:43 +0100
committerGitHub2016-07-08 20:20:43 +0100
commitb55250c44eacd49646407b26a73753965d4d36d0 (patch)
tree17151c1dc49763aacac2c11f1d5774bdbbe9555a /Library/Homebrew/utils/github.rb
parent8282744af9b8a3b146f608f2a37214159496b2ef (diff)
downloadbrew-b55250c44eacd49646407b26a73753965d4d36d0.tar.bz2
test_integration_cmds: use a single teardown. (#475)
Instead of writing a custom ensure for every test let's just nuke all the files every time. This may be something we might want to use for other unit tests too. It leans heavily on the fact that a `FileUtils.rm_rf` on files that don't exist is very quick and things like `brew cleanup` are super slow in comparison. Before: ``` $ brew tests --only=integration_cmds --official-cmd-taps Finished in 49.764724s, 1.0047 runs/s, 5.2648 assertions/s. ``` After: ``` $ brew tests --only=integration_cmds --official-cmd-taps Finished in 43.014769s, 1.1624 runs/s, 5.8352 assertions/s. ```
Diffstat (limited to 'Library/Homebrew/utils/github.rb')
0 files changed, 0 insertions, 0 deletions