homebrew-cask-versions/test/support/cleanup.rb
Paul Hinze 17026b6e93 don't reinstall already installed casks
thanks to @ccutrer for the catch; this implementation is based on his PR

refs #233
2013-05-11 23:32:17 -05:00

10 lines
198 B
Ruby

module Cask::CleanupHooks
def after_teardown
super
Cask.all.select(&:installed?).each { |c| Cask::Installer.uninstall(c) }
end
end
class MiniTest::Spec
include Cask::CleanupHooks
end